From d4fe483efd3e0062f12430efe9deb66d43d914d7 Mon Sep 17 00:00:00 2001 From: irungentoo Date: Sat, 13 Jul 2013 10:09:38 -0400 Subject: NaCl moved to other repo. --- nacl/crypto_scalarmult/wrapper-mult.cpp | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 nacl/crypto_scalarmult/wrapper-mult.cpp (limited to 'nacl/crypto_scalarmult/wrapper-mult.cpp') diff --git a/nacl/crypto_scalarmult/wrapper-mult.cpp b/nacl/crypto_scalarmult/wrapper-mult.cpp deleted file mode 100644 index fc693cf0..00000000 --- a/nacl/crypto_scalarmult/wrapper-mult.cpp +++ /dev/null @@ -1,12 +0,0 @@ -#include -using std::string; -#include "crypto_scalarmult.h" - -string crypto_scalarmult(const string &n,const string &p) -{ - unsigned char q[crypto_scalarmult_BYTES]; - if (n.size() != crypto_scalarmult_SCALARBYTES) throw "incorrect scalar length"; - if (p.size() != crypto_scalarmult_BYTES) throw "incorrect element length"; - crypto_scalarmult(q,(const unsigned char *) n.c_str(),(const unsigned char *) p.c_str()); - return string((char *) q,sizeof q); -} -- cgit v1.2.3