]> git.ipfire.org Git - thirdparty/openssl.git/commit
Add an inital ML-KEM fuzzer
authorNeil Horman <nhorman@openssl.org>
Tue, 4 Feb 2025 21:14:57 +0000 (16:14 -0500)
committerTomas Mraz <tomas@openssl.org>
Fri, 14 Feb 2025 09:50:59 +0000 (10:50 +0100)
commitf440e816d07f62f2ab9640184556d4e1b075ab29
tree0aa2d27d3805ff7142e31df48ec63da8d642d766
parent096fde92e79d7d4b276b03e5b331f39b5e32de3d
Add an inital ML-KEM fuzzer

Add an inital version of an ML-KEM fuzzer.  Exercises various ML-KEM
appropriate apis, as a fuzzer does.  Currently it is able to randomly:

1) Attempt to create raw public private keys of various valid and
   invalid sizes
2) Generate legitimate keys of various sizes using the keygen api

3) Preform encap/decap operations using real generated keys

4) Do a shared secret derivation using 2 keys

5) Do an export and import of a key using todata/fromdata

6) Do a comparison of two equal and unequal keys

Its not much to start, but it should be fairly extensible

Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/26657)
fuzz/build.info
fuzz/ml-kem.c [new file with mode: 0644]
test/recipes/99-test_fuzz_ml-kem.t [new file with mode: 0644]