diff options
author | lloyd <[email protected]> | 2008-06-07 16:02:07 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-06-07 16:02:07 +0000 |
commit | b0c6cb743534d68ec1af45dc5104da4bf152173d (patch) | |
tree | 3bae7aa95dd0a9d0e3f5386bce709d210c52886b /src | |
parent | 1ae8c46e6ce35c780c493359817d5be9c8c3bc90 (diff) |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/x931_rng.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |