mirror of
https://github.com/openssl/openssl.git
synced 2024-12-21 06:09:35 +08:00
f000e82898
Move the three different DRBGs to the provider. As part of the move, the DRBG specific data was pulled out of a common structure and into their own structures. Only these smaller structures are securely allocated. This saves quite a bit of secure memory: +-------------------------------+ | DRBG | Bytes | Secure | +--------------+-------+--------+ | HASH | 376 | 512 | | HMAC | 168 | 256 | | CTR | 176 | 256 | | Common (new) | 320 | 0 | | Common (old) | 592 | 1024 | +--------------+-------+--------+ Bytes is the structure size on the X86/64. Secure is the number of bytes of secure memory used (power of two allocator). Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com> (Merged from https://github.com/openssl/openssl/pull/11682)
7 lines
166 B
Plaintext
7 lines
166 B
Plaintext
SUBDIRS=seeding
|
|
|
|
$COMMON=drbg.c test_rng.c drbg_ctr.c drbg_hash.c drbg_hmac.c crngt.c rand_pool.c
|
|
|
|
SOURCE[../../libfips.a]=$COMMON
|
|
SOURCE[../../libnonfips.a]=$COMMON
|