Skip to main content

Module drbg

Module drbg 

Source
Expand description

AES-128 CTR_DRBG without a derivation function (NIST SP 800-90A Rev. 1, section 10.2.1), the generator S2 uses for SPAN nonces.

Both ends of a SPAN seed one of these with the same mixed entropy input and personalization string and then draw nonces in lockstep, so it must be bit-exact; it is tested against NIST’s CAVP vectors. The AES block function is the aes crate’s.

Structs§

CtrDrbg
AES-128 CTR_DRBG state (no derivation function, no prediction resistance).

Constants§

SEED_LEN
Seed length: key length plus block length.