0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/lib/internal/crypto
Ruben Bridgewater 6c913fb028
lib: remove return values from validation functions
This makes sure the validation functions do not cause any side
effects. Validation functions should ideally only validate the input
without any other effect. Since the input value must be known from
the callee, there is no reason to return the input value.

PR-URL: https://github.com/nodejs/node/pull/26809
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2019-03-27 17:05:13 +01:00
..
certificate.js bootstrapper: move internalBinding to NativeModule 2018-10-04 11:55:34 +02:00
cipher.js crypto: move DEP0113 to End-of-Life 2019-03-02 10:58:12 +01:00
diffiehellman.js src,lib: remove dead process.binding() code 2019-02-03 20:41:53 +01:00
hash.js crypto: include 'Buffer' in error output of Hash.update method 2019-02-09 17:21:41 +01:00
keygen.js crypto: add support for x25119 and x448 KeyObjects 2019-03-25 01:40:54 +01:00
keys.js crypto: expose KeyObject class 2019-03-17 10:53:58 +01:00
pbkdf2.js lib: refactor Error.captureStackTrace() usage 2019-03-23 02:55:54 +01:00
random.js bootstrapper: move internalBinding to NativeModule 2018-10-04 11:55:34 +02:00
scrypt.js lib: remove return values from validation functions 2019-03-27 17:05:13 +01:00
sig.js crypto: always accept private keys as public keys 2019-01-08 00:20:09 +01:00
util.js crypto: put legacy _handle accessors on prototypes 2018-11-11 20:01:31 +01:00