diff options
author | Jack Lloyd <[email protected]> | 2017-10-11 17:05:42 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-10-11 17:05:42 -0400 |
commit | 02cf0c8e5793447a907e2e44ee5976a46d181abd (patch) | |
tree | 0bed921cdad60d1837071834485ff7001ceb6260 | |
parent | 4a2168a0e54cf6ee57e1f7e99646e23eeb6c10ff (diff) |
Helpful comment
-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"); } |