title: Unknown message digest in crypto and Node 10
body: <p>Here is part of my code that uses <a href="https://nodejs.org/api/crypto.html" rel="nofollow noreferrer">crypto</a> and works fine with Node v8.15.0:</p>
  
  <pre><code>const crypto = require('crypto');
  ...
  const sign = crypto.createSign('DSA');
  </code></pre>
  
  <hr>
  
  <p>When I switched to <strong>Node 10</strong>:</p>
  
  <pre><code>nvm install 10
  node --version
  v10.15.1
  </code></pre>
  
  <p>The same source code <strong>returns error</strong>:</p>
  
  <pre><code>     Error: Unknown message digest
        at new Sign (internal/crypto/sig.js:26:16)
        at Object.createSign (crypto.js:137:10)
  </code></pre>
  
  <p>How to get <strong>DSA</strong> in Node 10 and crypto?</p>
  
  <hr>
  
  <p>Additional information:
  Node 10 <code>crypto.getHashes()</code> returns (no DSA!):</p>
  
  <pre><code>[ 'RSA-MD4',
    'RSA-MD5',
    'RSA-MDC2',
    'RSA-RIPEMD160',
    'RSA-SHA1',
    'RSA-SHA1-2',
    'RSA-SHA224',
    'RSA-SHA256',
    'RSA-SHA384',
    'RSA-SHA512',
    'blake2b512',
    'blake2s256',
    'md4',
    'md4WithRSAEncryption',
    'md5',
    'md5-sha1',
    'md5WithRSAEncryption',
    'mdc2',
    'mdc2WithRSA',
    'ripemd',
    'ripemd160',
    'ripemd160WithRSA',
    'rmd160',
    'sha1',
    'sha1WithRSAEncryption',
    'sha224',
    'sha224WithRSAEncryption',
    'sha256',
    'sha256WithRSAEncryption',
    'sha384',
    'sha384WithRSAEncryption',
    'sha512',
    'sha512WithRSAEncryption',
    'ssl3-md5',
    'ssl3-sha1',
    'whirlpool' ]
  </code></pre>
  
  <p>While in Node 8 I get (truncated as SO doesn't like too much code):</p>
  
  <pre><code>[ 'DSA',
    'DSA-SHA',
    'DSA-SHA1',
    'DSA-SHA1-old',
    'RSA-MD4',
    'RSA-MD5',
    ...
    'whirlpool' ]
  </code></pre>
  
  <hr>