1
0
mirror of https://github.com/PurpleI2P/i2pd.git synced 2025-01-22 08:14:15 +00:00

fixed incorrect second signature

This commit is contained in:
orignal 2018-09-14 18:58:40 -04:00
parent b917aeaa0b
commit 52ff568d86

View File

@ -70,6 +70,7 @@ namespace crypto
void EDDSA25519Signer::Sign (const uint8_t * buf, int len, uint8_t * signature) const void EDDSA25519Signer::Sign (const uint8_t * buf, int len, uint8_t * signature) const
{ {
size_t l = 64; size_t l = 64;
EVP_DigestSignInit (m_MDCtx, NULL, NULL, NULL, NULL);
EVP_DigestSign (m_MDCtx, signature, &l, buf, len); EVP_DigestSign (m_MDCtx, signature, &l, buf, len);
} }