From 9287a6cdc37c7c37e744f8418a13a74bb0e629ef Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Thu, 17 Apr 2025 12:56:44 +0200 Subject: fuzz against slow aez-ref, not fast aez-ni Two reasons: First, this allows us to test more of the algorithm, as the (slow) reference implementation supports multiple associated data items, large values for tau, ... Second, this avoids the segfault crash, which is a limit of the fast implementation (the assumption there is that data is aligned properly, and even a read out-of-bounds will not cause a segfault). --- fuzz/Cargo.toml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'fuzz/Cargo.toml') diff --git a/fuzz/Cargo.toml b/fuzz/Cargo.toml index 7c063d6..043fbef 100644 --- a/fuzz/Cargo.toml +++ b/fuzz/Cargo.toml @@ -10,11 +10,13 @@ cargo-fuzz = true [dependencies] arbitrary = { version = "1.4.1", features = ["derive"] } libfuzzer-sys = "0.4" -aez = "0.0.7" [dependencies.zears] path = ".." +[dependencies.aezref] +path = "../aezref" + [[bin]] name = "fuzz_target_1" path = "fuzz_targets/fuzz_target_1.rs" -- cgit v1.2.3