aboutsummaryrefslogtreecommitdiffstats
path: root/src/def_alg.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2007-09-16 16:00:37 +0000
committerlloyd <[email protected]>2007-09-16 16:00:37 +0000
commit22c9e2330cdf0030222aa2aafb5b8de4aebb707a (patch)
tree08c399090af662feaf057b472effe4ab0566ba4c /src/def_alg.cpp
parentc2a2e61e14dd27ad9a1143b06e404502b364415f (diff)
Check in an initial implementation of CBC-MAC.
The test vectors were generated by Crypto++ 5.5 on a Linux/x86-64 machine. Test vectors for CBC-MAC(DES) all pass, for inputs up to 63 bytes. For CBC-MAC(AES-128), all test vectors with inputs over 10 bytes fail to verify against what Crypto++ produces. Unknown at this time where the bug lies.
Diffstat (limited to 'src/def_alg.cpp')
-rw-r--r--src/def_alg.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/def_alg.cpp b/src/def_alg.cpp
index 09ae5c978..2dbd30621 100644
--- a/src/def_alg.cpp
+++ b/src/def_alg.cpp
@@ -52,6 +52,7 @@
#include <botan/whrlpool.h>
#include <botan/par_hash.h>
+#include <botan/cbc_mac.h>
#include <botan/cmac.h>
#include <botan/hmac.h>
#include <botan/x919_mac.h>
@@ -219,6 +220,7 @@ Default_Engine::find_mac(const std::string& algo_spec) const
return 0;
const std::string algo_name = deref_alias(name[0]);
+ HANDLE_TYPE_ONE_STRING("CBC-MAC", CBC_MAC);
HANDLE_TYPE_ONE_STRING("CMAC", CMAC);
HANDLE_TYPE_ONE_STRING("HMAC", HMAC);
HANDLE_TYPE_NO_ARGS("X9.19-MAC", ANSI_X919_MAC);