Commit Graph

600 Commits (master)

Author SHA1 Message Date
Reda Chouk de592ef252 Rust wrapper: build and pass tests against the FIPS v6 module, and run doc tests in FIPS builds 2026-11-23 10:24:17 +01:00
Reda Chouk 11130631dc rust wrapper: add RSA PKCS#1 v1.5 sign and verify for keys of any size 2026-11-12 11:23:16 +01:00
Josh Holtrop 4eace975c9 Rust wrapper: fix more FIPS v5 compatibility situations and doc tests 2026-11-06 15:25:10 -05:00
Sean Parkinson 9ed99ddaa4
Merge pull request #11823 from holtrop-wolfssl/wolfssl-wolfcrypt-3.0.0-prep
Rust crate: wolfssl-wolfcrypt 3.0.0
2026-11-06 11:44:26 +10:00
Lealem Amedie c3f1e988c9 Reverse gate polarity and use WOLFSSL_FIPS_EXPORT_LOCAL_APIS instead 2026-11-04 10:31:59 -07:00
Lealem Amedie 699aa5cf37 drop the csharp wc_RNG_HealthTest_fips binding 2026-11-04 10:26:49 -07:00
Lealem Amedie dcbe26cab4 gate RUST RNG health test wrappers on WOLFSSL_FIPS_PRIVATE_API 2026-11-04 10:26:49 -07:00
Josh Holtrop d0b1c46726 Rust wrapper: update README for version 3.0.0 2026-11-04 12:06:34 -05:00
Josh Holtrop 874448f1ce fixup changelog 2026-11-04 12:06:34 -05:00
Josh Holtrop 5e17e884a1 Rust wrapper: bump wolfssl-wolfcrypt crate to v3.0.0 2026-11-04 12:06:34 -05:00
Josh Holtrop 7b49245936 Rust wrapper: squelch a couple compiler warnings to collapse if statements 2026-11-04 12:06:34 -05:00
Josh Holtrop 024e224dcd Rust wrapper: finalize CHANGELOG for v3.0.0 2026-11-04 12:06:34 -05:00
David Garske 1092899f2b
Merge pull request #11916 from drzifr/drzifr/xchacha_streaming_aead_tag
Fix: produce conformant AEAD tags for non-empty AAD with XChaCha20-Poly1305 streaming API
2026-11-03 15:16:50 -08:00
Reda Chouk 2da0c89b38 Rust wrapper: implement the rand_core 0.9 RNG traits behind a rand_core_0_9 feature 2026-10-29 10:48:21 +01:00
Dan Rouhana 8745536ac1
produce conformant AEAD tags for non-empty AAD with XChaCha20-Poly1305 streaming API 2026-10-28 13:05:10 -07:00
Reda Chouk 9dbe646ed8 Rust wrapper: allow RSA-PSS verify check on FIPS v5.2.3 and tell dependents it is v5.2.3 2026-10-27 10:55:33 +01:00
Reda Chouk dfab924de0 Rust wrapper: build and pass tests against the FIPS v5.2.3 module 2026-10-27 10:55:33 +01:00
Reda Chouk e11c312382 fixup! Rust wrapper: use approved calls for AES-GCM encrypt with external IV in FIPS builds 2026-10-21 14:34:47 +02:00
Reda Chouk 42aaf551a9 Rust wrapper: add FIPS tests for the private key read guard and the self test helper 2026-10-21 14:27:37 +02:00
Reda Chouk f1cd6d4410 Rust wrapper: add a scoped FIPS private key read guard and a run-once helper for all self tests 2026-10-21 14:27:37 +02:00
Reda Chouk aa7e287b26 Rust wrapper: expect FIPS to refuse a caller supplied reseed in test_rng_reseed 2026-10-21 08:46:52 +02:00
Reda Chouk 51470f325d Rust wrapper: tell dependent crates when wolfSSL is a FIPS build 2026-10-21 08:23:31 +02:00
Reda Chouk a317235cd3 Rust wrapper: use the FIPS minimum PBKDF2 output length in test_output_len_bounds 2026-10-21 08:23:31 +02:00
Reda Chouk 560aa8e71c Rust wrapper: use a FIPS-sized key in the HMAC chain_update test 2026-10-21 08:23:31 +02:00
Reda Chouk f51ab9ccb7 Rust wrapper: use approved calls for AES-GCM encrypt with external IV in FIPS builds 2026-10-21 08:23:31 +02:00
Aidan Keefe aa3f7cb6e3 remove depriacted build option 2026-10-20 16:40:06 -07:00
Josh Holtrop 6bd2469cbd Rust wrapper: allow generating random data to large buffers
Previously RNG::generate_block and TryRng::try_fill_bytes would return
an error for buffers larger than 64KB.

Fixes F-15122.
2026-10-16 11:17:51 -04:00
Josh Holtrop 3d6454aeff Rust wrapper: fail crate build if C library built with async support
The Rust wrapper was not designed to properly handle the C async
implementation.
2026-10-16 11:17:51 -04:00
philljj e6bc824748
Merge pull request #11718 from holtrop-wolfssl/rust-updates-2026-10-12
Rust updates 2026-10-12
2026-10-15 14:59:30 -05:00
Reda Chouk d89136ec9b rust: gate zeroize and aead imports on the algorithms that use them 2026-10-13 14:28:08 +02:00
Reda Chouk c3a986bb33 rust: publish library dir to dependant crates for rpath 2026-10-13 14:20:20 +02:00
Josh Holtrop 4b6abe88f0 Rust wrapper: address minor Copilot code review findings
chacha20_poly1305: zeroize struct on error
ed25519/ed448: do not drop ph_stream_len if it is unexpected size
2026-10-12 13:56:50 -04:00
Josh Holtrop 6b7959ba8b Rust wrapper: chacha20_poly1305: disallow finalize() for decrypt
finalize_verify() must be used instead.

Fixes F-11284.
2026-10-12 09:05:32 -04:00
Josh Holtrop 5e00545b10 Rust wrapper: ed25519/ed448: require correct prehash length
Fixes F-10102, F-10103.
2026-10-12 09:05:32 -04:00
Josh Holtrop 22e6caa87c Rust wrapper: ed25519/ed448: fix prehash comments
Fixes F-11280, F-11281.
2026-10-12 09:05:32 -04:00
Josh Holtrop 1ebc339a8b Rust wrapper: fix detecting NO_SIG_WRAPPER C build option
Fixes F-13036.
2026-10-12 09:05:32 -04:00
Josh Holtrop 64385c64dd Rust wrapper: ed448: fix comments to correct hash to SHAKE256
Fixes F-10081.
2026-10-12 09:05:32 -04:00
Josh Holtrop 9668a48b9a Rust wrapper: fail build if library not found for in-repo build
Fixes F-13702.
2026-10-12 09:05:32 -04:00
Josh Holtrop 1fdfe36632 Rust wrapper: ed25519/ed448: verify variant/context combinations
Fixes F-13060.
2026-10-12 09:05:32 -04:00
Josh Holtrop 534771bb9e Rust wrapper: disable rsa_oaep cfg if C library disables it
Fixes F-13034.
2026-10-12 09:05:32 -04:00
Josh Holtrop 1021958ef5 Rust wrapper: aes: avoid pointer aliasing in apply_stream_chunked
Fixes F-10099.
2026-10-12 09:05:32 -04:00
Josh Holtrop bb4a9caff5 Rust wrapper: chunk digest updates to fit in 4GB chunks
Fixes F-10104.
2026-10-12 09:05:32 -04:00
Josh Holtrop 2b73bcaac2 Rust wrapper: return output lengths from key export methods
Fixes F-11287.
2026-10-12 09:05:32 -04:00
Josh Holtrop 66586272d7 Rust wrapper: fix CMAC one-shot methods reinitializing CMAC instances
Fixes F-8291.
2026-10-12 09:05:31 -04:00
Josh Holtrop 88f3c9f917 Rust wrapper: XChaCha20Poly1305Aead: avoid large stack buffer
Also allow larger input buffers by using caller's buffer for in-place
operation.

Fixes F-8290.
2026-10-12 09:05:01 -04:00
philljj 9d911234df
Merge pull request #11515 from holtrop-wolfssl/f-12240
Rust wrapper: lms: replace export_pub_from() with export_pub()
2026-10-10 17:58:24 -05:00
philljj 132b548a39
Merge pull request #11512 from holtrop-wolfssl/f-11273
Rust wrapper: rsa_pkcs1v15: make SigningKey::verifying_key infallible
2026-10-08 10:16:40 -05:00
Josh Holtrop e964ce50a9 Rust wrapper: lms: replace export_pub_from() with export_pub()
Also add export_pub_ex().
Fixes F-12240.
2026-10-07 21:30:33 -04:00
philljj 95fea1a540
Merge pull request #11630 from holtrop-wolfssl/f-11276
Rust wrapper: blake2: fix comments about hash length
2026-10-07 16:00:06 -05:00
Josh Holtrop dba52cf55b Rust wrapper: mldsa: use cfg gates for level constants
Fixes F-12237.
2026-10-07 12:31:29 -04:00