summaryrefslogtreecommitdiff
path: root/nacl/crypto_onetimeauth/wrapper-auth.cpp
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2013-07-13 10:09:38 -0400
committerirungentoo <irungentoo@gmail.com>2013-07-13 10:09:38 -0400
commitd4fe483efd3e0062f12430efe9deb66d43d914d7 (patch)
treee6aa9ac716ae82cdb15c6e6cb5d9d1d9d29f053b /nacl/crypto_onetimeauth/wrapper-auth.cpp
parent835ef0320d47372eac14bef31c979b8217d04498 (diff)
NaCl moved to other repo.
Diffstat (limited to 'nacl/crypto_onetimeauth/wrapper-auth.cpp')
-rw-r--r--nacl/crypto_onetimeauth/wrapper-auth.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/nacl/crypto_onetimeauth/wrapper-auth.cpp b/nacl/crypto_onetimeauth/wrapper-auth.cpp
deleted file mode 100644
index f4279607..00000000
--- a/nacl/crypto_onetimeauth/wrapper-auth.cpp
+++ /dev/null
@@ -1,11 +0,0 @@
1#include <string>
2using std::string;
3#include "crypto_onetimeauth.h"
4
5string crypto_onetimeauth(const string &m,const string &k)
6{
7 if (k.size() != crypto_onetimeauth_KEYBYTES) throw "incorrect key length";
8 unsigned char a[crypto_onetimeauth_BYTES];
9 crypto_onetimeauth(a,(const unsigned char *) m.c_str(),m.size(),(const unsigned char *) k.c_str());
10 return string((char *) a,crypto_onetimeauth_BYTES);
11}