diff options
Diffstat (limited to 'src/lib/prov/pkcs11/p11_randomgenerator.cpp')
-rw-r--r-- | src/lib/prov/pkcs11/p11_randomgenerator.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/prov/pkcs11/p11_randomgenerator.cpp b/src/lib/prov/pkcs11/p11_randomgenerator.cpp index 957a33cae..2f4e4c2ec 100644 --- a/src/lib/prov/pkcs11/p11_randomgenerator.cpp +++ b/src/lib/prov/pkcs11/p11_randomgenerator.cpp @@ -18,12 +18,12 @@ PKCS11_RNG::PKCS11_RNG(Session& session) void PKCS11_RNG::randomize(uint8_t output[], std::size_t length) { - module()->C_GenerateRandom(m_session.get().handle(), output, length); + module()->C_GenerateRandom(m_session.get().handle(), output, Ulong(length)); } void PKCS11_RNG::add_entropy(const uint8_t in[], std::size_t length) { - module()->C_SeedRandom(m_session.get().handle(), const_cast<uint8_t*>(in), length); + module()->C_SeedRandom(m_session.get().handle(), const_cast<uint8_t*>(in), Ulong(length)); } } |