diff options
author | Iru Cai <mytbk920423@gmail.com> | 2018-06-04 09:20:52 +0800 |
---|---|---|
committer | Iru Cai <mytbk920423@gmail.com> | 2018-06-06 21:24:00 +0800 |
commit | 5ced18152ee31c1d469e7ec3a1e09b5ff0ae3814 (patch) | |
tree | a97dc69ca746f90f03d7fd3a2061a4d420cf1e33 /src/protocol/internal/curve25519/crypto_scalarmult.h | |
parent | 172598081bb5121ee9085888b91e0e6195b5c5b5 (diff) | |
download | fqterm-5ced18152ee31c1d469e7ec3a1e09b5ff0ae3814.tar.xz |
add curve25519 ref implementation
Diffstat (limited to 'src/protocol/internal/curve25519/crypto_scalarmult.h')
-rw-r--r-- | src/protocol/internal/curve25519/crypto_scalarmult.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/protocol/internal/curve25519/crypto_scalarmult.h b/src/protocol/internal/curve25519/crypto_scalarmult.h new file mode 100644 index 0000000..5984cce --- /dev/null +++ b/src/protocol/internal/curve25519/crypto_scalarmult.h @@ -0,0 +1,17 @@ +#ifndef CRYPTO_SCALARMULT_H +#define CRYPTO_SCALARMULT_H + +typedef unsigned char u8; + +#ifdef __cplusplus +extern "C" { +#endif + +int crypto_scalarmult_base(unsigned char *q,const unsigned char *n); +int crypto_scalarmult(u8 *mypublic, const u8 *secret, const u8 *basepoint); + +#ifdef __cplusplus +} +#endif + +#endif |