diff options
author | lloyd <[email protected]> | 2013-04-03 20:15:58 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2013-04-03 20:15:58 +0000 |
commit | 6f4719d43374213a5057ea8689b4c95b5c6ad4ca (patch) | |
tree | d75fb5a551983ff14639a6f2868f432cb35a91f3 /src/aead/eax/eax.cpp | |
parent | 72e28626c40de83eb37856e252bea647ed523ec4 (diff) |
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.
Diffstat (limited to 'src/aead/eax/eax.cpp')
-rw-r--r-- | src/aead/eax/eax.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
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<byte> 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<byte> 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<byte>(); } void EAX_Encryption::update(secure_vector<byte>& buffer, size_t offset) |