diff options
author | lloyd <[email protected]> | 2008-10-13 20:59:52 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-10-13 20:59:52 +0000 |
commit | c0850c0afb4c177413c6be72bc8e96ab300a76fc (patch) | |
tree | 907c168adf7b1543490f79229f82f4c90ce1c8f6 /src/pubkey/eckaeg/eckaeg.h | |
parent | 5cd53808f058ed209a767a8c5ca01be29b5eedc0 (diff) |
Add ECKAEG benchmark. Fix several problems found in ECKAEG key (had pure virtuals)
Diffstat (limited to 'src/pubkey/eckaeg/eckaeg.h')
-rw-r--r-- | src/pubkey/eckaeg/eckaeg.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/pubkey/eckaeg/eckaeg.h b/src/pubkey/eckaeg/eckaeg.h index 609b13d79..9b0cd492c 100644 --- a/src/pubkey/eckaeg/eckaeg.h +++ b/src/pubkey/eckaeg/eckaeg.h @@ -101,13 +101,22 @@ class BOTAN_DLL ECKAEG_PrivateKey : public ECKAEG_PublicKey, ECKAEG_PrivateKey(ECKAEG_PrivateKey const& other); ECKAEG_PrivateKey const& operator=(ECKAEG_PrivateKey const& rhs); + MemoryVector<byte> public_value() const; + void PKCS8_load_hook(bool = false); /** * Derive a shared key with the other partys public key. - * @param pub_key the other partys public key + * @param key the other partys public key + * @param key_len the other partys public key + */ + SecureVector<byte> derive_key(const byte key[], u32bit key_len) const; + + /** + * Derive a shared key with the other partys public key. + * @param other the other partys public key */ - SecureVector<byte> derive_key(const Public_Key& pub_key) const; + SecureVector<byte> derive_key(const ECKAEG_PublicKey& other) const; /** * Make sure that the public key parts of this object are set |