drbg.js
Deterministic Random Bits Generators
Based on NIST Recommended DRBG from NIST SP800-90A with the following properties:
CTR DRBG with DF with AES-128, AES-192, AES-256 coressee issue #1- Hash DRBG with DF with SHA-1, SHA-224, SHA-256, SHA-384, SHA-512 cores
- HMAC DRBG with SHA-1, SHA-224, SHA-256, SHA-384, SHA-512 cores
withand without prediction resistance
Installation
npm install drbg.js
Usage
var drbgs = // import HashDRBG and HmacDRBGvar HashDRBG = drbgsHashDRBG // or require('drbg.js/hash')var HmacDRBG = drbgsHmacDRBG // or require('drbg.js/hmac') var drbg2 = 'sha256' entropy nonce personalization_datadrbg2 // <Buffer qq qq qq qq qq>drbg2drbg2 // <Buffer ww ww ww ww ww> var drbg3 = 'sha256' entropy nonce personalization_datadrbg3 // <Buffer ee ee ee ee ee>drbg3drbg3 // <Buffer rr rr rr rr rr>
LICENSE
This library is free and open-source software released under the MIT license.