call RoutingDestination::Encrypt instead ElGamalEncrypt

This commit is contained in:
orignal 2017-11-07 20:30:05 -05:00
parent 81658d2ff9
commit 53d71d29ff
6 changed files with 9 additions and 11 deletions

View file

@ -208,7 +208,7 @@ namespace data
return ts > m_ExpirationTime;
}
void LeaseSet::Encrypt (const uint8_t * data, uint8_t * encrypted, BN_CTX * ctx)
void LeaseSet::Encrypt (const uint8_t * data, uint8_t * encrypted, BN_CTX * ctx) const
{
auto encryptor = m_Identity->CreateEncryptor (m_EncryptionKey);
if (encryptor)