Skip to content

Commit 4faa21a

Browse files
Rust wrapper: Fix DH::FFDHE_* constant values
1 parent 8e7f77d commit 4faa21a

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

  • wrapper/rust/wolfssl/src/wolfcrypt

wrapper/rust/wolfssl/src/wolfcrypt/dh.rs

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,16 @@ pub struct DH {
4040
}
4141

4242
impl DH {
43+
/// ffdhe2048 named parameter group.
4344
pub const FFDHE_2048: i32 = ws::WC_FFDHE_2048 as i32;
44-
pub const FFDHE_3072: i32 = ws::WC_FFDHE_2048 as i32;
45-
pub const FFDHE_4096: i32 = ws::WC_FFDHE_2048 as i32;
46-
pub const FFDHE_6144: i32 = ws::WC_FFDHE_2048 as i32;
47-
pub const FFDHE_8192: i32 = ws::WC_FFDHE_2048 as i32;
45+
/// ffdhe3072 named parameter group.
46+
pub const FFDHE_3072: i32 = ws::WC_FFDHE_3072 as i32;
47+
/// ffdhe4096 named parameter group.
48+
pub const FFDHE_4096: i32 = ws::WC_FFDHE_4096 as i32;
49+
/// ffdhe6144 named parameter group.
50+
pub const FFDHE_6144: i32 = ws::WC_FFDHE_6144 as i32;
51+
/// ffdhe8192 named parameter group.
52+
pub const FFDHE_8192: i32 = ws::WC_FFDHE_8192 as i32;
4853

4954
/// Perform quick validity check of public key value against prime.
5055
///

0 commit comments

Comments
 (0)