diff options
Diffstat (limited to 'src/engine/openssl/bn_wrap.cpp')
-rw-r--r-- | src/engine/openssl/bn_wrap.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/engine/openssl/bn_wrap.cpp b/src/engine/openssl/bn_wrap.cpp index 6f1b5ef25..779956824 100644 --- a/src/engine/openssl/bn_wrap.cpp +++ b/src/engine/openssl/bn_wrap.cpp @@ -23,7 +23,7 @@ OSSL_BN::OSSL_BN(const BigInt& in) /* * OSSL_BN Constructor */ -OSSL_BN::OSSL_BN(const byte in[], u32bit length) +OSSL_BN::OSSL_BN(const byte in[], size_t length) { value = BN_new(); BN_bin2bn(in, length, value); @@ -57,7 +57,7 @@ OSSL_BN& OSSL_BN::operator=(const OSSL_BN& other) /* * Export the BIGNUM as a bytestring */ -void OSSL_BN::encode(byte out[], u32bit length) const +void OSSL_BN::encode(byte out[], size_t length) const { BN_bn2bin(value, out + (length - bytes())); } @@ -65,7 +65,7 @@ void OSSL_BN::encode(byte out[], u32bit length) const /* * Return the number of significant bytes */ -u32bit OSSL_BN::bytes() const +size_t OSSL_BN::bytes() const { return BN_num_bytes(value); } |