replaced ElGamalEncrypt to ElGamalEncryption

This commit is contained in:
orignal committed 2014-02-20 20:28:41 -05:00
1 parent 8d6c08ec78
commit 3c8f859169
5 files changed
+23 -34

No files matched your search

+1 -1
View File
@@ -212,7 +212,7 @@ namespace i2p
const I2NPBuildRequestRecordClearText& clearText,
I2NPBuildRequestRecordElGamalEncrypted& record)
{
i2p::crypto::ElGamalEncrypt (router.GetRouterIdentity ().publicKey, (uint8_t *)&clearText, sizeof(clearText), record.encrypted);
router.GetElGamalEncryption ()->Encrypt ((uint8_t *)&clearText, sizeof(clearText), record.encrypted);
memcpy (record.toPeer, (const uint8_t *)router.GetIdentHash (), 16);
}