mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
Add eddsa from ref10 implementation (with some modifications).
This commit is contained in:
parent
2fcc91a755
commit
93d60152d5
84 changed files with 5798 additions and 567 deletions
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__
|
Loading…
Add table
Add a link
Reference in a new issue