diff options
Diffstat (limited to 'nacl/crypto_scalarmult/wrapper-base.cpp')
-rw-r--r-- | nacl/crypto_scalarmult/wrapper-base.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/nacl/crypto_scalarmult/wrapper-base.cpp b/nacl/crypto_scalarmult/wrapper-base.cpp deleted file mode 100644 index f71ce19a..00000000 --- a/nacl/crypto_scalarmult/wrapper-base.cpp +++ /dev/null | |||
@@ -1,11 +0,0 @@ | |||
1 | #include <string> | ||
2 | using std::string; | ||
3 | #include "crypto_scalarmult.h" | ||
4 | |||
5 | string crypto_scalarmult_base(const string &n) | ||
6 | { | ||
7 | unsigned char q[crypto_scalarmult_BYTES]; | ||
8 | if (n.size() != crypto_scalarmult_SCALARBYTES) throw "incorrect scalar length"; | ||
9 | crypto_scalarmult_base(q,(const unsigned char *) n.c_str()); | ||
10 | return string((char *) q,sizeof q); | ||
11 | } | ||