diff options
Diffstat (limited to 'src/lib/rng/x931_rng/x931_rng.h')
-rw-r--r-- | src/lib/rng/x931_rng/x931_rng.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/rng/x931_rng/x931_rng.h b/src/lib/rng/x931_rng/x931_rng.h index 8052cedc3..63ade67ff 100644 --- a/src/lib/rng/x931_rng/x931_rng.h +++ b/src/lib/rng/x931_rng/x931_rng.h @@ -34,15 +34,15 @@ class BOTAN_DLL ANSI_X931_RNG : public RandomNumberGenerator */ ANSI_X931_RNG(BlockCipher* cipher, RandomNumberGenerator* rng); - ~ANSI_X931_RNG(); + private: void rekey(); void update_buffer(); - BlockCipher* cipher; - RandomNumberGenerator* prng; - secure_vector<byte> V, R; - size_t position; + std::unique_ptr<BlockCipher> m_cipher; + std::unique_ptr<RandomNumberGenerator> m_prng; + secure_vector<byte> m_V, m_R; + size_t m_R_pos; }; } |