2015-08-27 23:16:12 +03:00
|
|
|
#ifndef ED25519_REF10_H__
|
|
|
|
#define ED25519_REF10_H__
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Generate a public key from a given private key.
|
|
|
|
*/
|
|
|
|
int ed25519_ref10_pubkey(unsigned char* pk, const unsigned char* sk);
|
|
|
|
|
|
|
|
int ed25519_ref10_open(
|
|
|
|
const unsigned char* sig,
|
2015-08-30 11:18:29 +03:00
|
|
|
const unsigned char* m, size_t mlen,
|
2015-08-27 23:16:12 +03:00
|
|
|
const unsigned char*pk
|
|
|
|
);
|
|
|
|
|
|
|
|
int ed25519_ref10_sign(
|
|
|
|
unsigned char* sig,
|
2015-08-30 11:18:29 +03:00
|
|
|
const unsigned char* m, size_t mlen,
|
2015-08-27 23:16:12 +03:00
|
|
|
const unsigned char* sk, const unsigned char* pk
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
#endif // ED25519_REF10_H__
|