diff options
Diffstat (limited to 'src/mac/mac.cpp')
-rw-r--r-- | src/mac/mac.cpp | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/src/mac/mac.cpp b/src/mac/mac.cpp deleted file mode 100644 index 094aa1b4a..000000000 --- a/src/mac/mac.cpp +++ /dev/null @@ -1,26 +0,0 @@ -/* -* Message Authentication Code base class -* (C) 1999-2008 Jack Lloyd -* -* Distributed under the terms of the Botan license -*/ - -#include <botan/mac.h> -#include <botan/mem_ops.h> - -namespace Botan { - -/* -* Default (deterministic) MAC verification operation -*/ -bool MessageAuthenticationCode::verify_mac(const byte mac[], size_t length) - { - secure_vector<byte> our_mac = final(); - - if(our_mac.size() != length) - return false; - - return same_mem(&our_mac[0], &mac[0], length); - } - -} |