Skip to content

Commit

Permalink
added dh-gr16-512
Browse files Browse the repository at this point in the history
  • Loading branch information
bho01 authored and Eugeny committed Jan 26, 2024
1 parent 93e36ec commit 8f6af5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions russh/src/kex/dh/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ pub struct DhGroup14Sha256KexType {}

impl KexType for DhGroup14Sha256KexType {
fn make(&self) -> Box<dyn KexAlgorithm + Send> {
Box::new(DhGroupKex::<Sha256>::new(&DH_GROUP16)) as Box<dyn KexAlgorithm + Send>
Box::new(DhGroupKex::<Sha256>::new(&DH_GROUP14)) as Box<dyn KexAlgorithm + Send>
}
}

pub struct DhGroup16Sha512KexType {}

impl KexType for DhGroup16Sha512KexType {
fn make(&self) -> Box<dyn KexAlgorithm + Send> {
Box::new(DhGroupKex::<Sha512>::new(&DH_GROUP14)) as Box<dyn KexAlgorithm + Send>
Box::new(DhGroupKex::<Sha512>::new(&DH_GROUP16)) as Box<dyn KexAlgorithm + Send>
}
}

Expand Down

0 comments on commit 8f6af5e

Please sign in to comment.