Fixed RNG crypto tester
This commit is contained in:
@@ -1075,8 +1075,7 @@ METHOD(crypto_tester_t, test_rng, bool,
|
||||
{
|
||||
goto failure;
|
||||
}
|
||||
if (!failed)
|
||||
{ /* write bytes into existing buffer */
|
||||
/* write bytes into existing buffer */
|
||||
memset(data.ptr, 0, data.len);
|
||||
if (!rng->get_bytes(rng, vector->len, data.ptr))
|
||||
{
|
||||
@@ -1086,7 +1085,6 @@ METHOD(crypto_tester_t, test_rng, bool,
|
||||
{
|
||||
goto failure;
|
||||
}
|
||||
}
|
||||
|
||||
failed = FALSE;
|
||||
failure:
|
||||
|
||||
Reference in New Issue
Block a user