crypto: Switch to correct curve name

*Note: this is a breaking change for the network protocol*.

We switch to the correct curve name for the noise handshake.
Since this value is hashed as part of the handshake digest, it
will break the protocol until all nodes upgrade.
This commit is contained in:
Alexis Sellier 2023-07-22 22:51:14 +02:00 committed by cloudhead
parent 0358d7bcf0
commit 95a3146885
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -175,7 +175,7 @@ impl From<PublicKey> for ssh_key::PublicKey {
#[cfg(feature = "cyphernet")]
impl cyphernet::EcPk for PublicKey {
const COMPRESSED_LEN: usize = 32;
const CURVE_NAME: &'static str = "Curve25519";
const CURVE_NAME: &'static str = "Edwards25519";
type Compressed = [u8; 32];