From 6f4719d43374213a5057ea8689b4c95b5c6ad4ca Mon Sep 17 00:00:00 2001 From: lloyd Date: Wed, 3 Apr 2013 20:15:58 +0000 Subject: Remove return value of AEAD_Mode::start as it doesn't seem necessary and is an extra complication for callers. Replace the get_aead in lookup.h returning a Filter with one in aead.h returning AEAD_Mode. --- src/aead/eax/eax.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/aead/eax/eax.cpp') diff --git a/src/aead/eax/eax.cpp b/src/aead/eax/eax.cpp index c6aaa9e85..a0e00b6d6 100644 --- a/src/aead/eax/eax.cpp +++ b/src/aead/eax/eax.cpp @@ -92,7 +92,7 @@ void EAX_Mode::set_associated_data(const byte ad[], size_t length) m_ad_mac = eax_prf(1, block_size(), *m_cmac, ad, length); } -secure_vector EAX_Mode::start(const byte nonce[], size_t nonce_len) +void EAX_Mode::start(const byte nonce[], size_t nonce_len) { if(!valid_nonce_length(nonce_len)) throw Invalid_IV_Length(name(), nonce_len); @@ -104,8 +104,6 @@ secure_vector EAX_Mode::start(const byte nonce[], size_t nonce_len) for(size_t i = 0; i != block_size() - 1; ++i) m_cmac->update(0); m_cmac->update(2); - - return secure_vector(); } void EAX_Encryption::update(secure_vector& buffer, size_t offset) -- cgit v1.2.3