diff options
Diffstat (limited to 'src/aead/aead.h')
-rw-r--r-- | src/aead/aead.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/aead/aead.h b/src/aead/aead.h index c4de71857..e0e07e8ab 100644 --- a/src/aead/aead.h +++ b/src/aead/aead.h @@ -66,10 +66,10 @@ class AEAD_Mode : public SymmetricAlgorithm * @param nonce the per message nonce * @param nonce_len length of nonce */ - virtual void start(const byte nonce[], size_t nonce_len) = 0; + virtual secure_vector<byte> start(const byte nonce[], size_t nonce_len) = 0; template<typename Alloc> - void start_vec(const std::vector<byte, Alloc>& nonce) + secure_vector<byte> start_vec(const std::vector<byte, Alloc>& nonce) { return start(&nonce[0], nonce.size()); } @@ -94,11 +94,6 @@ class AEAD_Mode : public SymmetricAlgorithm virtual ~AEAD_Mode() {} }; -/** -* Get an AEAD mode by name (eg "AES-128/GCM" or "Serpent/EAX") -*/ -BOTAN_DLL AEAD_Mode* get_aead(const std::string& name, Cipher_Dir direction); - } #endif |