diff options
Diffstat (limited to 'src/lib/mac')
-rw-r--r-- | src/lib/mac/cmac/cmac.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/mac/cmac/cmac.cpp b/src/lib/mac/cmac/cmac.cpp index b4c9cb129..daa320a36 100644 --- a/src/lib/mac/cmac/cmac.cpp +++ b/src/lib/mac/cmac/cmac.cpp @@ -46,6 +46,8 @@ secure_vector<byte> CMAC::poly_double(const secure_vector<byte>& in) out[out.size()-2] ^= 0x1; out[out.size()-1] ^= 0x25; break; + default: + throw std::runtime_error("Unsupported CMAC size " + std::to_string(in.size())); } } |