node/lib/internal/crypto
Rich Trott 1e4a2bcbee
crypto: remove check for condition that is always true
The value of `key` will always be `!= null` because earlier in the
function, `ERR_CRYPTO_SIGN_KEY_REQUIRED` is thrown if `key` is falsy.
Remove condition that subsequently checks that `key != null`.

PR-URL: https://github.com/nodejs/node/pull/38072
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2021-04-06 14:58:46 -07:00
..
aes.js crypto: refactor hasAnyNotIn to avoid unsafe array iteration 2021-02-26 16:34:04 +01:00
certificate.js lib: fix typo in lib/internal/crypto/certificate.js 2021-03-19 12:22:39 +01:00
cipher.js crypto: refactor to use more primordials 2020-11-09 20:23:07 -08:00
diffiehellman.js crypto: fix DiffieHellman argument validation 2021-03-23 11:03:51 +01:00
dsa.js crypto: add optional callback to crypto.sign and crypto.verify 2021-03-10 15:11:17 -08:00
ec.js crypto: add optional callback to crypto.sign and crypto.verify 2021-03-10 15:11:17 -08:00
hash.js crypto: refactor to use more primordials 2020-11-09 20:23:07 -08:00
hashnames.js crypto: refactoring internals, add WebCrypto 2020-10-07 17:27:05 -07:00
hkdf.js doc,lib: prepare for stricter multi-line array linting 2021-02-19 09:55:35 -08:00
keygen.js crypto: use correct webcrypto RSASSA-PKCS1-v1_5 algorithm name 2021-04-04 00:08:37 +02:00
keys.js crypto: support JWK objects in create*Key 2021-03-10 18:50:08 +01:00
mac.js crypto: refactor hasAnyNotIn to avoid unsafe array iteration 2021-02-26 16:34:04 +01:00
pbkdf2.js crypto: refactor to avoid unsafe array iteration 2021-02-19 12:55:54 +01:00
random.js crypto: add buffering to randomInt 2021-04-03 15:37:53 +02:00
rsa.js crypto: use correct webcrypto RSASSA-PKCS1-v1_5 algorithm name 2021-04-04 00:08:37 +02:00
scrypt.js crypto: refactor to avoid unsafe array iteration 2021-02-19 12:55:54 +01:00
sig.js crypto: remove check for condition that is always true 2021-04-06 14:58:46 -07:00
util.js crypto: use correct webcrypto RSASSA-PKCS1-v1_5 algorithm name 2021-04-04 00:08:37 +02:00
webcrypto.js crypto: use correct webcrypto RSASSA-PKCS1-v1_5 algorithm name 2021-04-04 00:08:37 +02:00
x509.js tls: add ability to get cert/peer cert as X509Certificate object 2021-02-02 09:39:27 -08:00