diff options
Diffstat (limited to 'Userland/Libraries/LibCrypto/Curves/SECP256r1.cpp')
-rw-r--r-- | Userland/Libraries/LibCrypto/Curves/SECP256r1.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibCrypto/Curves/SECP256r1.cpp b/Userland/Libraries/LibCrypto/Curves/SECP256r1.cpp index 91ff20a00a..d1ab81df10 100644 --- a/Userland/Libraries/LibCrypto/Curves/SECP256r1.cpp +++ b/Userland/Libraries/LibCrypto/Curves/SECP256r1.cpp @@ -357,7 +357,7 @@ static bool is_point_on_curve(JacobianPoint const& point) ErrorOr<ByteBuffer> SECP256r1::generate_private_key() { auto buffer = TRY(ByteBuffer::create_uninitialized(32)); - fill_with_random(buffer.data(), buffer.size()); + fill_with_random(buffer); return buffer; } |