crypto: migrate setFipsCrypto to internal/errors#16428
crypto: migrate setFipsCrypto to internal/errors#16428jasnell wants to merge 1 commit intonodejs:masterfrom
Conversation
doc/api/errors.md
Outdated
There was a problem hiding this comment.
I understand the meaning but as a non native speaker this sounds like alien English to me.
Is something like "Used when trying to enable or disable FIPS mode in the crypto module and the --force-fips command-line argument is used" equivalent?
There was a problem hiding this comment.
heh... I think I just mangled that sentence a bit ;-)
doc/api/errors.md
Outdated
There was a problem hiding this comment.
This is also a bit hard to grok (at least for me). Feel free to update it :)
|
ping @nodejs/tsc |
|
https://ci.nodejs.org/job/node-test-commit-linux-fips/11974/nodes=ubuntu1404-64/console |
test/parallel/test-crypto-fips.js
Outdated
There was a problem hiding this comment.
There should be two flavors of this string, the tests below needs update
ae963ed to
1e4c943
Compare
|
@joyeecheung .... PTAL |
lib/crypto.js
Outdated
There was a problem hiding this comment.
Why the check on fipsForced? Isn't setFipsForced only called when fipsForced is true?
There was a problem hiding this comment.
heh, good point ;-) this only needs to check if val is truthy :-)
|
CI is good on fips now! |
0391080 to
5438770
Compare
With the exception of ThrowCryptoError, use internal/errors to report fips unavailable or forced
5438770 to
a4e0c01
Compare
|
ping @joyeecheung |
With the exception of ThrowCryptoError, use internal/errors to report fips unavailable or forced PR-URL: #16428 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
|
Landed in ee76f31 |
With the exception of ThrowCryptoError, use internal/errors to report fips unavailable or forced PR-URL: nodejs/node#16428 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
With the exception of ThrowCryptoError, use internal/errors to report fips unavailable or forced PR-URL: nodejs/node#16428 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
With the exception of ThrowCryptoError, use internal/errors to report fips unavailable or forced PR-URL: nodejs/node#16428 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
With the exception of ThrowCryptoError, use internal/errors to report fips unavailable or forced
Also only exports the
setFipsCryptoandgetFipsCryptomethods onprocess.binding('crypto')if FIPS mode is available.Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passesAffected core subsystem(s)
crypto (fips)