Daniel Pouzzner
64a0f384a4
Merge pull request #10780 from holtrop-wolfssl/rust-rename-dilithium-mldsa
...
Rust wrapper: rename dilithium to mldsa
2026-07-01 16:30:28 -05:00
Josh Holtrop
b6d962350d
Rust wrapper: rename dilithium to mldsa
2026-06-25 10:31:44 -04:00
Josh Holtrop
f8c86ce227
Rust wrapper: fix Ed25519/Ed448 signature verify failed return values
2026-06-09 11:31:25 -04:00
Josh Holtrop
364e883941
Rust wrapper: handle MAC_CMP_FAILED_E from CMAC::verify{,_ex}()
...
Fix F-4468
2026-05-29 14:51:50 -04:00
Josh Holtrop
830aa7f7b6
Rust wrapper: fix CFB::encrypt1 and CFB::decrypt1 to take size in bits
2026-05-29 14:51:50 -04:00
Josh Holtrop
014925d37b
Rust wrapper: Add RSA-OAEP API
2026-05-29 14:51:50 -04:00
Josh Holtrop
056d548467
Rust wrapper: add scrypt kdf support and scrypt_password_hash trait impl module
2026-05-29 14:51:50 -04:00
Josh Holtrop
735d00d3d7
Rust wrapper: check slice lengths in ECC::import_unsigned
2026-05-18 12:40:17 -07:00
Josh Holtrop
a2b9a24082
Rust wrapper: test more empty slices in test_ecc
2026-05-18 12:27:45 -07:00
Josh Holtrop
9696cf26eb
Rust wrapper: use Rc instead of Arc for RNG references
...
WC_RNG has no internal locking so it is not safe to share a single
WC_RNG across threads without locking.
2026-05-18 12:27:45 -07:00
Josh Holtrop
f6e279ab42
Rust wrapper: test for null-terminated C-style strings in ECC import_raw APIs
2026-05-18 12:27:45 -07:00
Josh Holtrop
5a45fabb0d
Rust wrapper: add blake2_digest module
2026-05-18 12:27:45 -07:00
Josh Holtrop
cfc600977a
Rust wrapper: add blake2_mac module
2026-05-18 12:27:45 -07:00
Josh Holtrop
d88d5702e5
Rust wrapper: implement Clone for HMAC types
2026-05-18 12:27:45 -07:00
Josh Holtrop
b3aa7ef260
Rust wrapper: add Aes192Ccm and Aes192Gcm
2026-05-18 12:27:45 -07:00
Josh Holtrop
54cb1d8d38
Rust wrapper: ensure memory safety for C RNG struct
...
- store pointer to WC_RNG instead of full struct
- enforce RNG is not dropped before consumer structs
The C library stores a pointer via the set_rng() methods on a few
structs (e.g. RSA). This change holds a reference (or instance) of RNG
within the consumer structs to ensure it is kept alive if set_rng (or
now set_shared_rng) is used.
2026-05-18 12:27:44 -07:00
Josh Holtrop
b38d7bf630
Rust wrapper: guard sha384 pbkdf2 unit test
2026-04-28 13:49:16 -04:00
Josh Holtrop
1e35f94f04
Rust wrapper: guard a couple unit tests that require sha512
2026-04-28 11:08:09 -04:00
Josh Holtrop
6bb8f8f5cd
Rust wrapper: address Copilot review comments
2026-04-28 11:08:09 -04:00
Josh Holtrop
cf199c9ab8
Rust wrapper: replace Lms::sigs_left() with Lms::has_sigs_left()
...
Fixes F-3094
2026-04-28 11:08:08 -04:00
Josh Holtrop
40bc5d09f7
Rust wrapper: remove return value from MlKem::encode_{public,private}_key()
...
Fixes F-3093
2026-04-28 11:08:08 -04:00
Josh Holtrop
0cddbb25b2
Rust wrapper: check for NUL-terminated slice in ECC::rs_hex_to_sig
...
Fixes F-3092
2026-04-28 11:08:08 -04:00
Josh Holtrop
79358fea80
Rust wrapper: add mac feature and implement digest/mac traits
2026-04-28 11:08:08 -04:00
Josh Holtrop
84f8b5fa13
Rust wrapper: implement kem traits
2026-04-28 11:08:08 -04:00
Josh Holtrop
c08c16ee8f
Rust wrapper: implement password-hash traits
2026-04-28 11:08:08 -04:00
JacobBarthelmeh
1da353b516
Merge pull request #10248 from holtrop-wolfssl/rust-digest-signature
...
Rust wrapper: add digest and signature crate trait implementations
2026-04-24 11:15:40 -06:00
Josh Holtrop
a2b1f580c6
Rust wrapper: add buffer size checks in Rust wrapper for ChaCha20_Poly1305 one-shot encrypt/decrypt wrappers
2026-04-20 13:58:36 -04:00
Josh Holtrop
3ca90b1904
Rust wrapper: add signature implementations
2026-04-17 15:52:07 -04:00
Josh Holtrop
7f33de0882
Rust wrapper: add digest implementations
2026-04-17 15:52:07 -04:00
Josh Holtrop
4fb4b3c0c8
Rust wrapper: test BLAKE2 finalize() returns error for empty output buffer
2026-04-14 20:50:08 -04:00
Josh Holtrop
e1a01926bc
Rust wrapper: check length returned by Lms.get_kid() in unit test
2026-04-14 20:50:08 -04:00
Josh Holtrop
2f94121078
Rust wrapper: require caller supplied buffer for Lms.get_kid()
...
Fixes F-1073.
2026-04-14 20:50:08 -04:00
Josh Holtrop
23cb7ae30c
Rust wrapper: add cipher trait support
2026-03-25 10:51:06 -04:00
Josh Holtrop
873bc05cde
Rust wrapper: add aead trait support
2026-03-25 10:51:00 -04:00
Josh Holtrop
07acf8d33d
Rust wrapper: add rand_core trait support
2026-03-25 10:50:52 -04:00
Josh Holtrop
fa07db2cc6
Rust wrapper: add lms module
2026-03-06 10:19:12 -05:00
Josh Holtrop
a87446ca9e
Rust wrapper: mlkem: avoid unit test warnings
2026-03-02 11:49:14 -05:00
Josh Holtrop
67c500ec87
Rust wrapper: add mlkem module
2026-02-25 14:16:20 -05:00
Josh Holtrop
7af0fa497a
Rust wrapper: update dilithium module after review
2026-02-24 14:23:59 -05:00
Josh Holtrop
504617bbe9
Rust wrapper: add dilithium module
2026-02-23 10:54:21 -05:00
Josh Holtrop
2ada1a3629
Rust wrapper: add compatibility with older FIPS v5 package
2026-02-19 12:50:05 -05:00
Josh Holtrop
f9cea09f5b
Rust wrapper: add FIPS support
2026-02-04 14:32:05 -05:00
Josh Holtrop
88b34a68d8
Rust wrapper: ECC: Allow import_private_*() calls with empty pub_buf slice
2026-01-29 10:32:50 -05:00
Josh Holtrop
a555d5290a
Rust wrapper: add HMAC-BLAKE2[bs] wrappers
2026-01-20 08:10:16 -05:00
Daniel Pouzzner
1d247b744c
wrapper/rust/: fix unit tests to avoid out-of-order wolfCrypt_Cleanup().
2026-01-13 14:43:50 -06:00
Josh Holtrop
a9b2e83d1c
Rust wrapper: add one-shot XChaCha20-Poly1305 encrypt/decrypt functions
2026-01-07 11:43:08 -05:00
Josh Holtrop
9007d12d2a
Rust wrapper: add wolfssl_wolfcrypt::chacha20_poly1305 module
2026-01-05 08:44:34 -05:00
Josh Holtrop
0a834bed7a
Rust wrapper: add wolfssl_wolfcrypt::curve25519 module
2025-12-29 14:33:25 -05:00
Josh Holtrop
bbac280890
Rust wrapper: add wolfssl_wolfcrypt::blake2 module
2025-12-26 13:02:27 -05:00
Josh Holtrop
0a469d4a4d
Avoid unused variable warning in ECCPoint test
2025-12-15 13:02:55 -05:00