mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-05-05 15:07:01 +02:00
fixed private key size and publishing for crypto type 1
This commit is contained in:
parent
d9f64c6f51
commit
855e111bd0
2 changed files with 3 additions and 16 deletions
|
@ -165,7 +165,7 @@ namespace crypto
|
|||
switch (type)
|
||||
{
|
||||
case i2p::data::CRYPTO_KEY_TYPE_ELGAMAL: return 256;
|
||||
case i2p::data::CRYPTO_KEY_TYPE_ECIES_P256_SHA256_AES256CBC: return 32;
|
||||
case i2p::data::CRYPTO_KEY_TYPE_ECIES_P256_SHA256_AES256CBC: return 256; // actual size is 32, but we use 256 for compatibility with old keys files
|
||||
case i2p::data::CRYPTO_KEY_TYPE_ECIES_X25519_AEAD: return 32;
|
||||
// ML-KEM hybrid
|
||||
case i2p::data::CRYPTO_KEY_TYPE_ECIES_MLKEM512_X25519_AEAD:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue