mbedtls/library
Gavin Acquroff 77cb30c3cb Support set *_drbg reseed interval before seed
mbedtls_ctr_drbg_set_reseed_interval() and
mbedtls_hmac_drbg_set_reseed_interval() can now be called before
their seed functions and the reseed_interval value will persist.
Previously it would be overwritten with the default value.

*_drbg_reseed_interval is now set in init() and free().

mbedtls_ctr_drbg_free() and mbedtls_hmac_drbg_free() now
reset the drbg context to the state immediately after init().

Tests:
- Added test to check that DRBG reseeds when reseed_counter
reaches reseed_interval, if reseed_interval set before seed
and reseed_interval is less than MBEDTLS_*_DRBG_RESEED_INTERVAL.

Signed-off-by: gacquroff <gavina352@gmail.com>
2020-12-03 13:30:36 -08:00
..
.gitignore Split libs with make + general make cleanups 2015-06-25 10:59:56 +02:00
aes.c Merge pull request #3863 from gabor-mezei-arm/3818_bp216_MBEDTLS_AES_SETKEY_DEC_ALT_excludes_MBEDTLS_CIPHER_MODE_XTS 2020-11-09 20:44:12 +01:00
aesni.c Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
arc4.c Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
aria.c Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
asn1parse.c Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
asn1write.c Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
base64.c Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
bignum.c adjusting size of sliding window array to correct size. 2020-09-08 12:07:19 +02:00
blowfish.c Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
camellia.c Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
ccm.c Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
certs.c Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
chacha20.c Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
chachapoly.c Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
cipher.c Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
cipher_wrap.c Do not set IV size for ECB mode ciphers 2020-11-06 15:26:52 +01:00
cmac.c Fix mismatched function parameters (prototype/definition) 2020-11-28 12:14:57 -03:00
CMakeLists.txt Bump version to Mbed TLS 2.16.8 2020-08-26 15:26:49 +01:00
ctr_drbg.c Support set *_drbg reseed interval before seed 2020-12-03 13:30:36 -08:00
debug.c Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
des.c Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
dhm.c Merge branch 'mbedtls-2.16' into mbedtls-2.16-restricted 2020-08-25 10:58:15 +02:00
ecdh.c Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
ecdsa.c Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
ecjpake.c Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
ecp.c Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
ecp_curves.c Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
entropy.c Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
entropy_poll.c Fix the build when _GNU_SOURCE is defined to a non-empty value 2020-10-01 17:17:37 +02:00
error.c Simplify conditional guards in error.c 2020-11-16 13:07:51 +01:00
gcm.c Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
havege.c Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
hkdf.c Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
hmac_drbg.c Support set *_drbg reseed interval before seed 2020-12-03 13:30:36 -08:00
Makefile Fix #2370, minor typos and spelling mistakes 2019-02-18 14:50:57 +00:00
md.c Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
md2.c Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
md4.c Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
md5.c Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
md_wrap.c Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
memory_buffer_alloc.c Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
net_sockets.c Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
nist_kw.c Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
oid.c Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
padlock.c Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
pem.c Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
pk.c Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
pk_wrap.c Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
pkcs5.c Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
pkcs11.c Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
pkcs12.c Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
pkparse.c fix return code 2020-09-22 16:22:27 +02:00
pkwrite.c Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
platform.c Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
platform_util.c Fixes two _POSIX_C_SOURCE typos. 2020-11-13 09:17:16 +00:00
poly1305.c Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
ripemd160.c Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
rsa.c Restore retry in rsa_prepare_blinding() 2020-09-30 07:22:42 -05:00
rsa_internal.c Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
sha1.c Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
sha256.c Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
sha512.c Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
ssl_cache.c Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
ssl_ciphersuites.c Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
ssl_cli.c Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
ssl_cookie.c Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
ssl_srv.c Fix another use of uinitialized memory in ssl_parse_encrypted_pms 2020-11-18 13:54:38 +01:00
ssl_ticket.c Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
ssl_tls.c Move declaration to fix C90 warning 2020-11-28 14:59:56 -03:00
threading.c Fixes two _POSIX_C_SOURCE typos. 2020-11-13 09:17:16 +00:00
timing.c Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
version.c Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
version_features.c Add an option to test constant-flow with valgrind 2020-08-25 11:26:37 +02:00
x509.c Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
x509_create.c Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
x509_crl.c Merge branch 'mbedtls-2.16' into mbedtls-2.16-restricted 2020-08-25 10:58:15 +02:00
x509_crt.c Always revoke certificate on CRL 2020-08-26 11:42:52 +02:00
x509_csr.c Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
x509write_crt.c Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
x509write_csr.c Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
xtea.c Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00