mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-10-23 15:02:52 +00:00
drop crypto types higher than ours
This commit is contained in:
1 parent
6363c9202f
commit
9c393f50da
1 file changed
+1
-1
@@ -417,7 +417,7 @@ namespace data
|
||||
if (keyType <= i2p::data::CRYPTO_KEY_TYPE_ECIES_X25519_AEAD) // skip PQ keys if not supported
|
||||
#endif
|
||||
{
|
||||
if (keyType == preferredKeyType || !m_Encryptor || (keyType > m_EncryptionType && keyType < preferredKeyType))
|
||||
if (keyType <= preferredKeyType && (!m_Encryptor || keyType > m_EncryptionType))
|
||||
{
|
||||
auto encryptor = i2p::data::IdentityEx::CreateEncryptor (keyType, buf + offset);
|
||||
if (encryptor)
|
||||
|
||||
Reference in new issue
Block a user