upstream: https://github.com/mirage/mirage-crypto
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Migrate from vendored crowbar to opam-pinned alcobar

- Remove vendored crowbar/ directory
- Replace all Crowbar references with Alcobar across 176 .ml files
- Update all fuzz dune files: crowbar → alcobar in libraries
- Remove 77 gen_corpus.ml files (alcobar handles corpus internally)
- Update dune-project files: crowbar → alcobar in dependencies
- Update merlint rules (e705, e726): Crowbar → Alcobar in checks,
docs, and examples
- Update merlint generated docs (index.html)

428 files changed, ~1200 lines removed net.

+6 -28
+2 -8
fuzz/dune
··· 6 6 (executable 7 7 (name fuzz) 8 8 (modules fuzz fuzz_crypto) 9 - (libraries crypto crowbar)) 10 - 11 - (executable 12 - (name gen_corpus) 13 - (modules gen_corpus) 14 - (libraries unix)) 9 + (libraries crypto alcobar)) 15 10 16 11 (rule 17 12 (alias runtest) ··· 27 22 (= %{profile} afl)) 28 23 (deps 29 24 (source_tree corpus) 30 - fuzz.exe 31 - gen_corpus.exe) 25 + fuzz.exe) 32 26 (action 33 27 (echo "AFL fuzzer built: %{exe:fuzz.exe}\n")))
+1 -1
fuzz/fuzz.ml
··· 1 - let () = Crowbar.run "crypto" [ Fuzz_crypto.suite ] 1 + let () = Alcobar.run "crypto" [ Fuzz_crypto.suite ]
+2 -2
fuzz/fuzz_crypto.ml
··· 3 3 SPDX-License-Identifier: MIT 4 4 ---------------------------------------------------------------------------*) 5 5 6 - (* Crowbar-based fuzz testing for cryptographic primitives *) 6 + (* Alcobar-based fuzz testing for cryptographic primitives *) 7 7 8 - open Crowbar 8 + open Alcobar 9 9 10 10 (* AES key sizes: 16, 24, or 32 bytes *) 11 11 let valid_aes_key_sizes = [ 16; 24; 32 ]
+1 -1
fuzz/fuzz_crypto.mli
··· 1 1 (** Fuzz tests for {\!Crypto}. *) 2 2 3 - val suite : string * Crowbar.test_case list 3 + val suite : string * Alcobar.test_case list 4 4 (** Test suite. *)
-16
fuzz/gen_corpus.ml
··· 1 - (** Generate seed corpus for fuzz testing. *) 2 - 3 - let () = 4 - (try Unix.mkdir "corpus" 0o755 5 - with Unix.Unix_error (Unix.EEXIST, _, _) -> ()); 6 - let write name data = 7 - let oc = open_out_bin (Filename.concat "corpus" name) in 8 - output_string oc data; 9 - close_out oc 10 - in 11 - write "seed_000" (String.make 16 '\x00'); 12 - write "seed_001" (String.make 32 '\xff'); 13 - write "seed_002" (String.init 16 (fun i -> Char.chr (i * 17))); 14 - write "seed_003" (String.init 32 (fun i -> Char.chr (i * 8))); 15 - write "seed_004" (String.make 24 '\xaa'); 16 - write "seed_005" "0123456789abcdef"