diff options
author | George Hazan <ghazan@miranda.im> | 2019-03-26 13:06:41 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-03-26 13:06:41 +0300 |
commit | aec8f049d43d79c6c8c26a7d9ddfd9460d267275 (patch) | |
tree | 5e75220de26fda9b7b0527d550204c78a86ad90c /libs/libaxolotl/src/curve25519/ed25519/additions/crypto_additions.h | |
parent | f2764176c58829d24fee7a830a3c9ac2b57d1906 (diff) |
libaxolotl doesn't exist anymore, it's renamed to libsignal
Diffstat (limited to 'libs/libaxolotl/src/curve25519/ed25519/additions/crypto_additions.h')
-rw-r--r-- | libs/libaxolotl/src/curve25519/ed25519/additions/crypto_additions.h | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/libs/libaxolotl/src/curve25519/ed25519/additions/crypto_additions.h b/libs/libaxolotl/src/curve25519/ed25519/additions/crypto_additions.h deleted file mode 100644 index 5c4b8f47bf..0000000000 --- a/libs/libaxolotl/src/curve25519/ed25519/additions/crypto_additions.h +++ /dev/null @@ -1,45 +0,0 @@ - -#ifndef __CRYPTO_ADDITIONS__ -#define __CRYPTO_ADDITIONS__ - -#include "crypto_uint32.h" -#include "fe.h" -#include "ge.h" - -#define MAX_MSG_LEN 256 - -void sc_neg(unsigned char *b, const unsigned char *a); -void sc_cmov(unsigned char* f, const unsigned char* g, unsigned char b); - -int fe_isequal(const fe f, const fe g); -int fe_isreduced(const unsigned char* s); -void fe_mont_rhs(fe v2, const fe u); -void fe_montx_to_edy(fe y, const fe u); -void fe_sqrt(fe b, const fe a); - -int ge_isneutral(const ge_p3* q); -void ge_neg(ge_p3* r, const ge_p3 *p); -void ge_montx_to_p3(ge_p3* p, const fe u, const unsigned char ed_sign_bit); -void ge_p3_to_montx(fe u, const ge_p3 *p); -void ge_scalarmult(ge_p3 *h, const unsigned char *a, const ge_p3 *A); -void ge_scalarmult_cofactor(ge_p3 *q, const ge_p3 *p); - -void elligator(fe u, const fe r); -void hash_to_point(ge_p3* p, const unsigned char* msg, const unsigned long in_len); - -int crypto_sign_modified( - unsigned char *sm, - const unsigned char *m,unsigned long long mlen, - const unsigned char *sk, /* Curve/Ed25519 private key */ - const unsigned char *pk, /* Ed25519 public key */ - const unsigned char *random /* 64 bytes random to hash into nonce */ - ); - -int crypto_sign_open_modified( - unsigned char *m, - const unsigned char *sm,unsigned long long smlen, - const unsigned char *pk - ); - - -#endif |