Gilles Peskine
50ed86b6b9
CTR_DRBG: support set_entropy_len() before seed()
...
mbedtls_ctr_drbg_seed() always set the entropy length to the default,
so a call to mbedtls_ctr_drbg_set_entropy_len() before seed() had no
effect. Change this to the more intuitive behavior that
set_entropy_len() sets the entropy length and seed() respects that and
only uses the default entropy length if there was no call to
set_entropy_len().
This removes the need for the test-only function
mbedtls_ctr_drbg_seed_entropy_len(). Just call
mbedtls_ctr_drbg_set_entropy_len() followed by
mbedtls_ctr_drbg_seed(), it works now.
2019-10-11 18:04:12 +02:00
..
2019-07-15 15:52:25 +01:00
2019-07-15 15:52:25 +01:00
2019-07-15 15:52:25 +01:00
2019-07-15 15:52:25 +01:00
2019-10-04 11:35:09 +02:00
2019-09-11 15:46:45 +02:00
2019-07-15 15:52:25 +01:00
2019-09-02 13:44:57 +02:00
2019-07-15 15:52:25 +01:00
2019-09-02 13:44:57 +02:00
2019-07-15 15:52:25 +01:00
2019-07-15 15:52:25 +01:00
2019-07-15 15:52:25 +01:00
2019-07-15 15:52:25 +01:00
2019-08-19 13:37:46 +01:00
2019-07-31 17:47:49 +02:00
2019-07-15 15:52:25 +01:00
2019-07-15 15:52:25 +01:00
2019-07-15 15:52:25 +01:00
2019-10-04 11:16:31 +02:00
2019-10-11 18:04:12 +02:00
2019-07-15 15:52:25 +01:00
2019-07-15 15:52:25 +01:00
2019-08-19 13:37:46 +01:00
2019-09-05 11:18:58 +01:00
2019-07-15 15:52:25 +01:00
2019-07-15 15:52:25 +01:00
2019-08-19 13:37:46 +01:00
2019-07-15 15:52:25 +01:00
2019-07-15 15:52:25 +01:00
2019-07-31 10:37:53 +01:00
2019-07-15 15:52:25 +01:00
2019-07-15 15:52:25 +01:00
2019-08-16 09:26:41 +01:00
2019-10-11 18:04:12 +02:00
2019-07-15 15:52:25 +01:00
2019-07-15 15:52:25 +01:00
2019-07-15 15:52:25 +01:00
2019-09-10 18:38:39 +01:00
2019-07-15 15:52:25 +01:00
2019-07-15 15:52:25 +01:00
2019-07-15 15:52:25 +01:00
2019-07-15 15:52:25 +01:00
2019-07-15 15:52:25 +01:00
2019-07-31 10:37:53 +01:00
2019-07-15 15:52:25 +01:00
2019-07-31 17:47:49 +02:00
2019-07-15 15:52:25 +01:00
2019-07-15 15:52:25 +01:00
2019-07-15 15:52:25 +01:00
2019-07-31 10:37:53 +01:00
2019-07-31 10:37:53 +01:00
2019-07-15 15:52:25 +01:00
2019-07-31 17:47:49 +02:00
2019-07-15 15:52:25 +01:00
2019-07-15 15:52:25 +01:00
2019-07-15 15:52:25 +01:00
2019-07-15 15:52:25 +01:00
2019-07-15 15:52:25 +01:00
2019-07-15 15:52:25 +01:00
2019-07-15 15:52:25 +01:00
2019-07-15 15:52:25 +01:00
2019-07-15 15:52:25 +01:00
2019-07-15 15:52:25 +01:00