mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
EdDSA keys compatible with Java
This commit is contained in:
parent
b4657a0d05
commit
d83fc3181b
3 changed files with 15 additions and 4 deletions
|
@ -424,7 +424,8 @@ namespace crypto
|
|||
{
|
||||
public:
|
||||
|
||||
EDDSA25519Signer (const uint8_t * signingPrivateKey);
|
||||
EDDSA25519Signer (const uint8_t * signingPrivateKey, const uint8_t * signingPublicKey = nullptr);
|
||||
// we pass signingPublicKey to check if it matches private key
|
||||
void Sign (const uint8_t * buf, int len, uint8_t * signature) const;
|
||||
const uint8_t * GetPublicKey () const { return m_PublicKeyEncoded; };
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue