forked from nodejs/node
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
crypto: renamed addEntropy to addSystemEntropy, removed RAND_seed call
The purpose of this patch is to allow Node applications to proactively add additional entropy (provided by the OS) to OpenSSL's pool. This is useful in environments where a running Node process can be cloned (e.g. VM snapshotting or live migration), resulting in a chance of the cloned process sharing an entropy pool with the original process. The new AddSystemEntropy function calls RAND_poll, which will add entropy using an OS-dependent method. Performance was evaluated at about 140k ops/sec, but this will vary by OS and hardware. The AddSystemEntropy function is bound to crypto.addSystemEntropy(). Usage: var crypto = require('crypto'); // Add entropy from system-supplied source crypto.addSystemEntropy();
- Loading branch information
Showing
4 changed files
with
17 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters