Skip to content

Commit 8f6af5e

Browse files
bho01Eugeny
authored andcommitted
added dh-gr16-512
1 parent 93e36ec commit 8f6af5e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

russh/src/kex/dh/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ pub struct DhGroup14Sha256KexType {}
3434

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

4141
pub struct DhGroup16Sha512KexType {}
4242

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

0 commit comments

Comments
 (0)