aboutsummaryrefslogtreecommitdiffstats
path: root/src/engine/openssl/bn_wrap.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-03-05 21:03:31 +0000
committerlloyd <[email protected]>2010-03-05 21:03:31 +0000
commit6b39750947767194af6503a79fe699527e499796 (patch)
tree5bbffc2a7d459ca016a6e7ba726a893cfd0db5ab /src/engine/openssl/bn_wrap.h
parenta1edf776a21ceb55f783d8ef3da255b2d083259c (diff)
Update OpenSSL engine for new interface. Similiar to GMP engine, drop
support for ElGamal and NR, leaving only RSA, DSA, and DH support.
Diffstat (limited to 'src/engine/openssl/bn_wrap.h')
-rw-r--r--src/engine/openssl/bn_wrap.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/engine/openssl/bn_wrap.h b/src/engine/openssl/bn_wrap.h
index 0307189a9..02a229fdd 100644
--- a/src/engine/openssl/bn_wrap.h
+++ b/src/engine/openssl/bn_wrap.h
@@ -25,6 +25,9 @@ class OSSL_BN
void encode(byte[], u32bit) const;
u32bit bytes() const;
+ SecureVector<byte> to_bytes() const
+ { return BigInt::encode(to_bigint()); }
+
OSSL_BN& operator=(const OSSL_BN&);
OSSL_BN(const OSSL_BN&);