Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions wrapper/rust/wolfssl-wolfcrypt/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ functionality:
* SHA
* SHA-1, SHA-224, SHA-256, SHA-384, SHA-512, SHA3-224, SHA3-256, SHA3-384,
SHA3-512, SHAKE128, SHAKE256
* SLH-DSA
* SRTP/SRTCP KDF
* SSH KDF
* TLSv1.3 HKDF
Expand Down
5 changes: 5 additions & 0 deletions wrapper/rust/wolfssl-wolfcrypt/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -528,5 +528,10 @@ fn scan_cfg() -> Result<()> {
check_cfg(&binding, "wc_InitShake128", "shake128");
check_cfg(&binding, "wc_InitShake256", "shake256");

/* slhdsa */
check_cfg(&binding, "wc_SlhDsaKey_Init", "slhdsa");
check_cfg(&binding, "wc_SlhDsaKey_Sign", "slhdsa_sign");
check_cfg(&binding, "WC_SLHDSA_SHA2_128S_SIG_LEN", "slhdsa_sha2");

Ok(())
}
1 change: 1 addition & 0 deletions wrapper/rust/wolfssl-wolfcrypt/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ pub mod pbkdf2_password_hash;
pub mod scrypt_password_hash;
#[cfg(feature = "digest")]
pub mod sha_digest;
pub mod slhdsa;

/// Convert a buffer length to `u32`, returning `BUFFER_E` if it overflows.
pub(crate) fn buffer_len_to_u32(len: usize) -> Result<u32, i32> {
Expand Down
Loading