Browse Source

fixed incorrect second signature

pull/1243/head
orignal 6 years ago
parent
commit
52ff568d86
  1. 1
      libi2pd/Signature.cpp

1
libi2pd/Signature.cpp

@ -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);
} }

Loading…
Cancel
Save