drbg: The drbg instance owns the entropy rng
This commit is contained in:
committed by
Tobias Brunner
parent
ccaedf8761
commit
11e9d2b8d1
@@ -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
|
||||
*/
|
||||
|
||||
@@ -1279,7 +1279,6 @@ METHOD(crypto_tester_t, test_drbg, bool,
|
||||
|
||||
failure:
|
||||
drbg->destroy(drbg);
|
||||
entropy->destroy(entropy);
|
||||
chunk_free(&out);
|
||||
if (failed)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user