aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/mac/cmac
diff options
context:
space:
mode:
authorlloyd <[email protected]>2014-11-05 12:00:24 +0000
committerlloyd <[email protected]>2014-11-05 12:00:24 +0000
commit4f474481f46bffc095ae104485b8da95bcb03973 (patch)
tree2da1bf58bdce2a2e9a1a8a6f8d27dbdb3a87e174 /src/lib/mac/cmac
parentf78e5e3fbd87d2e903f5ff4a230b65ac6d44f281 (diff)
Replace Transformatio::nstart with start_raw so we can do a full set
of overloads in the base class with the same name.
Diffstat (limited to 'src/lib/mac/cmac')
-rw-r--r--src/lib/mac/cmac/cmac.cpp2
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()));
}
}