summaryrefslogtreecommitdiffstats
path: root/botan/src/mac/mac.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'botan/src/mac/mac.cpp')
-rw-r--r--botan/src/mac/mac.cpp26
1 files changed, 0 insertions, 26 deletions
diff --git a/botan/src/mac/mac.cpp b/botan/src/mac/mac.cpp
deleted file mode 100644
index 96df255..0000000
--- a/botan/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>
-
-namespace Botan {
-
-/**
-* Default (deterministic) MAC verification operation
-*/
-bool MessageAuthenticationCode::verify_mac(const byte mac[], u32bit length)
- {
- SecureVector<byte> our_mac = final();
- if(our_mac.size() != length)
- return false;
- for(u32bit j = 0; j != length; ++j)
- if(mac[j] != our_mac[j])
- return false;
- return true;
- }
-
-}