diff options
author | irungentoo <irungentoo@gmail.com> | 2013-07-13 10:09:38 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2013-07-13 10:09:38 -0400 |
commit | d4fe483efd3e0062f12430efe9deb66d43d914d7 (patch) | |
tree | e6aa9ac716ae82cdb15c6e6cb5d9d1d9d29f053b /nacl/crypto_scalarmult/wrapper-mult.cpp | |
parent | 835ef0320d47372eac14bef31c979b8217d04498 (diff) |
NaCl moved to other repo.
Diffstat (limited to 'nacl/crypto_scalarmult/wrapper-mult.cpp')
-rw-r--r-- | nacl/crypto_scalarmult/wrapper-mult.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
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 @@ | |||
1 | #include <string> | ||
2 | using std::string; | ||
3 | #include "crypto_scalarmult.h" | ||
4 | |||
5 | string crypto_scalarmult(const string &n,const string &p) | ||
6 | { | ||
7 | unsigned char q[crypto_scalarmult_BYTES]; | ||
8 | if (n.size() != crypto_scalarmult_SCALARBYTES) throw "incorrect scalar length"; | ||
9 | if (p.size() != crypto_scalarmult_BYTES) throw "incorrect element length"; | ||
10 | crypto_scalarmult(q,(const unsigned char *) n.c_str(),(const unsigned char *) p.c_str()); | ||
11 | return string((char *) q,sizeof q); | ||
12 | } | ||