Commit Graph

4 Commits (master)

Author SHA1 Message Date
JacobBarthelmeh 11ef0e1254
Merge pull request #11157 from holtrop-wolfssl/f-8297
Gate SHA3-224/256/384/512 prototypes separately
2026-08-13 10:10:04 -06:00
Josh Holtrop 4b1ff0e346 Gate SHA3-224/256/384/512 prototypes separately
Rust wrapper: detect SHA3-224/256/384/512 build options separately.

Fixes F-8297.
2026-08-12 10:43:36 -04:00
Mark Atwood b6a857cbaa feat(rust): add copy() to SHA256 and SHA384
Add copy(&mut self) methods backed by wc_Sha256Copy/wc_Sha384Copy
for transcript snapshotting (e.g. TLS handshake hashing).

Uses &mut self (not Clone trait) because wc_ShaCopy may mutate src
on some platforms. Initializes dst before calling Copy to avoid
passing uninitialized memory to wc_ShaFree inside the C function.

Includes unit tests verifying independent copy semantics with
externally computed SHA-256/SHA-384 test vectors.
2026-07-30 10:36:31 -07:00
Josh Holtrop 8cd0c9bd11 Rust wrapper: rename wolfssl crate to wolfssl-wolfcrypt 2025-12-15 13:00:51 -05:00