summaryrefslogtreecommitdiff
path: root/authAlgo.cpp
diff options
context:
space:
mode:
authorErwin Nindl <nine@wirdorange.org>2007-12-13 13:03:29 +0000
committerErwin Nindl <nine@wirdorange.org>2007-12-13 13:03:29 +0000
commit725eafb3d384449f152a9feecf5d7953acda0ad6 (patch)
treebfbdfe39145396f907d76fad311b272672dcf697 /authAlgo.cpp
parentactivated sync (diff)
more generic code in anytun.cpp
Diffstat (limited to 'authAlgo.cpp')
-rw-r--r--authAlgo.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/authAlgo.cpp b/authAlgo.cpp
index cc345ca..0ffd76b 100644
--- a/authAlgo.cpp
+++ b/authAlgo.cpp
@@ -31,6 +31,7 @@
#include "authAlgo.h"
#include "log.h"
#include "buffer.h"
+#include "authTag.h"
#include "threadUtils.hpp"
#include <gcrypt.h>
@@ -90,7 +91,7 @@ AuthTag Sha1AuthAlgo::calc(const Buffer& buf)
{
Lock lock(mutex_);
// gcry_error_t err;
- Buffer hmac(10); // 10byte
+ AuthTag hmac(10); // 10byte
gcry_mpi_t tmp = gcry_mpi_new(160); // 20byte
gcry_md_write( ctx_, static_cast<Buffer>(buf).getBuf(), buf.getLength() );