Browse Source

check if both sides are ECIESx25519

pull/1474/head
orignal 5 years ago
parent
commit
91919c6d64
  1. 3
      libi2pd/Garlic.cpp

3
libi2pd/Garlic.cpp

@ -658,7 +658,8 @@ namespace garlic @@ -658,7 +658,8 @@ namespace garlic
std::shared_ptr<GarlicRoutingSession> GarlicDestination::GetRoutingSession (
std::shared_ptr<const i2p::data::RoutingDestination> destination, bool attachLeaseSet)
{
if (destination->GetEncryptionType () == i2p::data::CRYPTO_KEY_TYPE_ECIES_X25519_AEAD_RARCHET)
if (destination->GetEncryptionType () == i2p::data::CRYPTO_KEY_TYPE_ECIES_X25519_AEAD_RARCHET &&
GetEncryptionType () == i2p::data::CRYPTO_KEY_TYPE_ECIES_X25519_AEAD_RARCHET)
{
ECIESX25519AEADRatchetSessionPtr session;
uint8_t staticKey[32];

Loading…
Cancel
Save