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
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
6bb8f8f5cd
Rust wrapper: address Copilot review comments
2026-04-28 11:08:09 -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
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
0a469d4a4d
Avoid unused variable warning in ECCPoint test
2025-12-15 13:02:55 -05:00
Josh Holtrop
8cd0c9bd11
Rust wrapper: rename wolfssl crate to wolfssl-wolfcrypt
2025-12-15 13:00:51 -05:00