Skip to content

Commit 8246fa2

Browse files
authored
Merge pull request #9910 from holtrop-wolfssl/rust-lms
Rust wrapper: add lms module
2 parents e8a53c2 + fa07db2 commit 8246fa2

5 files changed

Lines changed: 1263 additions & 0 deletions

File tree

wrapper/rust/wolfssl-wolfcrypt/build.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,12 @@ fn scan_cfg() -> Result<()> {
331331
/* mlkem / ML-KEM */
332332
check_cfg(&binding, "wc_MlKemKey_Init", "mlkem");
333333

334+
/* lms / HSS */
335+
check_cfg(&binding, "wc_LmsKey_Init", "lms");
336+
check_cfg(&binding, "wc_LmsKey_MakeKey", "lms_make_key");
337+
check_cfg(&binding, "wc_LmsParm_WC_LMS_PARM_L1_H5_W1", "lms_sha256_256");
338+
check_cfg(&binding, "wc_LmsParm_WC_LMS_PARM_SHA256_192_L1_H5_W1", "lms_sha256_192");
339+
334340
/* sha */
335341
check_cfg(&binding, "wc_InitSha", "sha");
336342
check_cfg(&binding, "wc_InitSha224", "sha224");

wrapper/rust/wolfssl-wolfcrypt/headers.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,4 @@
2121
#include "wolfssl/wolfcrypt/pwdbased.h"
2222
#include "wolfssl/wolfcrypt/dilithium.h"
2323
#include "wolfssl/wolfcrypt/mlkem.h"
24+
#include "wolfssl/wolfcrypt/wc_lms.h"

wrapper/rust/wolfssl-wolfcrypt/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ pub mod fips;
3737
pub mod hkdf;
3838
pub mod hmac;
3939
pub mod kdf;
40+
pub mod lms;
4041
pub mod mlkem;
4142
pub mod prf;
4243
pub mod random;

0 commit comments

Comments
 (0)