diff options
author | Jack Lloyd <[email protected]> | 2018-09-04 19:29:59 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-09-06 11:24:16 -0400 |
commit | 8cbe5195b2ea82bf7a58f1a3b8afcc8c53a7537b (patch) | |
tree | e24dba4d3e8df8024b8ffffc797d2d15c0908f76 /src/lib/prov/pkcs11/p11_randomgenerator.h | |
parent | 992d2803181b34415c25e013a40ab935eb71a9e3 (diff) |
Add RandomNumberGenerator::accepts_input
Diffstat (limited to 'src/lib/prov/pkcs11/p11_randomgenerator.h')
-rw-r--r-- | src/lib/prov/pkcs11/p11_randomgenerator.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/prov/pkcs11/p11_randomgenerator.h b/src/lib/prov/pkcs11/p11_randomgenerator.h index cab9b77c4..82b7d9f48 100644 --- a/src/lib/prov/pkcs11/p11_randomgenerator.h +++ b/src/lib/prov/pkcs11/p11_randomgenerator.h @@ -57,6 +57,9 @@ class BOTAN_PUBLIC_API(2,0) PKCS11_RNG final : public Hardware_RNG /// Calls `C_SeedRandom` to add entropy to the random generation function of the token/middleware void add_entropy(const uint8_t in[], std::size_t length) override; + // C_SeedRandom may suceed + bool accepts_input() const override { return true; } + private: const std::reference_wrapper<Session> m_session; }; |