|
|
@ -11,18 +11,12 @@ typedef unsigned char ed25519_secret_key[32];
|
|
|
|
|
|
|
|
|
|
|
|
typedef unsigned char curve25519_key[32];
|
|
|
|
typedef unsigned char curve25519_key[32];
|
|
|
|
|
|
|
|
|
|
|
|
typedef unsigned char curved25519_key[32];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void ed25519_publickey(const ed25519_secret_key sk, ed25519_public_key pk);
|
|
|
|
void ed25519_publickey(const ed25519_secret_key sk, ed25519_public_key pk);
|
|
|
|
int ed25519_sign_open(const unsigned char *m, size_t mlen, const ed25519_public_key pk, const ed25519_signature RS);
|
|
|
|
int ed25519_sign_open(const unsigned char *m, size_t mlen, const ed25519_public_key pk, const ed25519_signature RS);
|
|
|
|
void ed25519_sign(const unsigned char *m, size_t mlen, const ed25519_secret_key sk, const ed25519_public_key pk, ed25519_signature RS);
|
|
|
|
void ed25519_sign(const unsigned char *m, size_t mlen, const ed25519_secret_key sk, const ed25519_public_key pk, ed25519_signature RS);
|
|
|
|
|
|
|
|
|
|
|
|
int ed25519_sign_open_batch(const unsigned char **m, size_t *mlen, const unsigned char **pk, const unsigned char **RS, size_t num, int *valid);
|
|
|
|
void curve25519_scalarmult(curve25519_key mypublic, const curve25519_key secret, const curve25519_key basepoint);
|
|
|
|
|
|
|
|
void curve25519_scalarmult_basepoint(curve25519_key mypublic, const curve25519_key secret);
|
|
|
|
void curved25519_scalarmult_basepoint(curved25519_key pk, const curved25519_key e);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void curve25519_donna(curve25519_key mypublic, const curve25519_key secret, const curve25519_key basepoint);
|
|
|
|
|
|
|
|
void curve25519_donna_basepoint(curve25519_key mypublic, const curve25519_key secret);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if defined(__cplusplus)
|
|
|
|
#if defined(__cplusplus)
|
|
|
|
}
|
|
|
|
}
|
|
|
|