all ratchets types are eligible for ECIESx25519

This commit is contained in:
orignal
2025-04-04 19:52:32 -04:00
parent 8ca74a3e1d
commit bce0ccf161
5 changed files with 14 additions and 2 deletions
+6
View File
@@ -1533,6 +1533,12 @@ namespace client
#endif
}
bool ClientDestination::SupportsRatchets () const
{
if (m_EncryptionKeys.empty ()) return false;
return m_EncryptionKeys.rbegin ()->first >= i2p::data::CRYPTO_KEY_TYPE_ECIES_X25519_AEAD;
}
const uint8_t * ClientDestination::GetEncryptionPublicKey (i2p::data::CryptoKeyType keyType) const
{
auto it = m_EncryptionKeys.find (keyType);