mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-07 06:09:42 +00:00
Add eddsa from ref10 implementation (with some modifications).
This commit is contained in:
22
core/crypto/ed25519/ed25519_ref10.h
Normal file
22
core/crypto/ed25519/ed25519_ref10.h
Normal file
@@ -0,0 +1,22 @@
|
||||
#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,
|
||||
const unsigned char* m, unsigned long long mlen,
|
||||
const unsigned char*pk
|
||||
);
|
||||
|
||||
int ed25519_ref10_sign(
|
||||
unsigned char* sig,
|
||||
const unsigned char* m, unsigned long long mlen,
|
||||
const unsigned char* sk, const unsigned char* pk
|
||||
);
|
||||
|
||||
|
||||
#endif // ED25519_REF10_H__
|
||||
Reference in New Issue
Block a user