drbg: The drbg instance owns the entropy rng

This commit is contained in:
Andreas Steffen
2019-11-28 09:55:56 +01:00
committed by Tobias Brunner
parent ccaedf8761
commit 11e9d2b8d1
7 changed files with 15 additions and 12 deletions
+1 -1
View File
@@ -159,7 +159,7 @@ struct crypto_factory_t {
*
* @param type DRBG type to use
* @param strength security strength in bits
* @param entropy entropy source to be used
* @param entropy entropy source to be used (adopted)
* @param personalization_str optional personalization string
* @return drbg_t instance, NULL if not supported
*/
-1
View File
@@ -1279,7 +1279,6 @@ METHOD(crypto_tester_t, test_drbg, bool,
failure:
drbg->destroy(drbg);
entropy->destroy(entropy);
chunk_free(&out);
if (failed)
{