From b0c6cb743534d68ec1af45dc5104da4bf152173d Mon Sep 17 00:00:00 2001 From: lloyd Date: Sat, 7 Jun 2008 16:02:07 +0000 Subject: We must have ANSI_X931_RNG::clear() call destroy() on V, which sets the length to zero. That is because we encoded our seededness state as being if (and only if) V has non-zero length. After clearing, we have reset all state. --- src/x931_rng.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/x931_rng.cpp b/src/x931_rng.cpp index 99d0730bd..17e3a886f 100644 --- a/src/x931_rng.cpp +++ b/src/x931_rng.cpp @@ -89,7 +89,7 @@ void ANSI_X931_RNG::clear() throw() cipher->clear(); prng->clear(); R.clear(); - V.clear(); + V.destroy(); position = 0; } -- cgit v1.2.3