aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/modes
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-10-11 17:05:42 -0400
committerJack Lloyd <[email protected]>2017-10-11 17:05:42 -0400
commit02cf0c8e5793447a907e2e44ee5976a46d181abd (patch)
tree0bed921cdad60d1837071834485ff7001ceb6260 /src/lib/modes
parent4a2168a0e54cf6ee57e1f7e99646e23eeb6c10ff (diff)
Helpful comment
Diffstat (limited to 'src/lib/modes')
-rw-r--r--src/lib/modes/aead/siv/siv.cpp3
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");
}