diff options
Diffstat (limited to 'src/lib/modes/aead')
-rw-r--r-- | src/lib/modes/aead/siv/siv.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/modes/aead/siv/siv.cpp b/src/lib/modes/aead/siv/siv.cpp index a3de8f35c..df9a0ef37 100644 --- a/src/lib/modes/aead/siv/siv.cpp +++ b/src/lib/modes/aead/siv/siv.cpp @@ -20,7 +20,8 @@ SIV_Mode::SIV_Mode(BlockCipher* cipher) : m_mac(new CMAC(cipher)), m_bs(cipher->block_size()) { - if(cipher->block_size() != 16) + // Not really true but only 128 bit allowed at the moment + if(m_bs != 16) throw Invalid_Argument("SIV requires a 128 bit block cipher"); } |