diff --git a/doc/api/crypto.md b/doc/api/crypto.md index 5e2af21dab19a5..a06a6d1b4ef84a 100644 --- a/doc/api/crypto.md +++ b/doc/api/crypto.md @@ -1239,11 +1239,15 @@ This property is deprecated. ### crypto.fips Property for checking and controlling whether a FIPS compliant crypto provider is currently in use. Setting to true requires a FIPS build of Node.js. +This property is deprecated. Please use `crypto.setFips()` and +`crypto.getFips()` instead. + ### crypto.createCipher(algorithm, password[, options]) + +Returns `true` if and only if a FIPS compliant crypto provider is +currently in use. + ### crypto.getHashes() +* `bool` {boolean} `true` to enable FIPS mode. + +Enables the FIPS compliant crypto provider in a FIPS-enabled Node.js build. +Throws an error if FIPS mode is not available. + ### crypto.timingSafeEqual(a, b)