mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
EdDSA signature type added
This commit is contained in:
parent
8891d9aa4d
commit
454f2dabbd
4 changed files with 40 additions and 3 deletions
18
Signature.h
18
Signature.h
|
@ -410,6 +410,24 @@ namespace crypto
|
|||
{
|
||||
}
|
||||
};
|
||||
|
||||
// EdDSA
|
||||
const size_t EDDSA_PUBLIC_KEY_LENGTH = 32;
|
||||
const size_t EDDSA_SIGNATURE_LENGTH = 64;
|
||||
const size_t EDDSA_PRIVATE_KEY_LENGTH = 32;
|
||||
class EDDSAVerifier: public Verifier
|
||||
{
|
||||
public:
|
||||
|
||||
EDDSAVerifier (const uint8_t * signingKey)
|
||||
{
|
||||
}
|
||||
|
||||
bool Verify (const uint8_t * buf, size_t len, const uint8_t * signature) const;
|
||||
|
||||
size_t GetPublicKeyLen () const { return EDDSA_PUBLIC_KEY_LENGTH; };
|
||||
size_t GetSignatureLen () const { return EDDSA_SIGNATURE_LENGTH; };
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue