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

Configure Feed

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

refactor(crypto): move EC tests to test/, fix E610/E618 lint issues

Move EC test infrastructure from tests/ to test/ directory:
- test_crypto_ec.ml, test vectors, and wycheproof/test_common helpers
- Rename ec_wycheproof.ml -> test_ec_wycheproof.ml (E618)
- Rename random_selftests.ml -> test_random_selftests.ml (E618)
- Update tests/dune to drop EC-only dependencies

+27 -20
+23 -1
test/dune
··· 1 1 (test 2 2 (name test) 3 - (libraries alcotest crypto crypto-rng crypto-rng.unix ohex)) 3 + (libraries 4 + alcotest 5 + crypto 6 + crypto-ec 7 + crypto-rng 8 + crypto-rng.unix 9 + ohex 10 + fmt 11 + test_common 12 + wycheproof 13 + digestif 14 + asn1-combinators) 15 + (deps 16 + ecdh_secp256r1_test.json 17 + ecdsa_secp256r1_sha256_test.json 18 + ecdsa_secp256r1_sha512_test.json 19 + ecdh_secp384r1_test.json 20 + ecdsa_secp384r1_sha384_test.json 21 + ecdsa_secp384r1_sha512_test.json 22 + ecdh_secp521r1_test.json 23 + ecdsa_secp521r1_sha512_test.json 24 + x25519_test.json 25 + eddsa_test.json))
+1
test/test.ml
··· 8 8 Test_chacha20.suite; 9 9 Test_cipher_block.suite; 10 10 Test_cipher_stream.suite; 11 + Test_crypto_ec.suite; 11 12 ]
+1 -16
tests/dune
··· 9 9 randomconv 10 10 ohex 11 11 crypto-pk 12 - crypto-ec 13 - test_common 14 - wycheproof 15 - digestif 16 - asn1-combinators) 17 - (deps 18 - ecdh_secp256r1_test.json 19 - ecdsa_secp256r1_sha256_test.json 20 - ecdsa_secp256r1_sha512_test.json 21 - ecdh_secp384r1_test.json 22 - ecdsa_secp384r1_sha384_test.json 23 - ecdsa_secp384r1_sha512_test.json 24 - ecdh_secp521r1_test.json 25 - ecdsa_secp521r1_sha512_test.json 26 - x25519_test.json 27 - eddsa_test.json)) 12 + digestif))
tests/ec_wycheproof.ml test/test_ec_wycheproof.ml
tests/ecdh_secp256r1_test.json test/ecdh_secp256r1_test.json
tests/ecdh_secp384r1_test.json test/ecdh_secp384r1_test.json
tests/ecdh_secp521r1_test.json test/ecdh_secp521r1_test.json
tests/ecdsa_secp256r1_sha256_test.json test/ecdsa_secp256r1_sha256_test.json
tests/ecdsa_secp256r1_sha512_test.json test/ecdsa_secp256r1_sha512_test.json
tests/ecdsa_secp384r1_sha384_test.json test/ecdsa_secp384r1_sha384_test.json
tests/ecdsa_secp384r1_sha512_test.json test/ecdsa_secp384r1_sha512_test.json
tests/ecdsa_secp521r1_sha512_test.json test/ecdsa_secp521r1_sha512_test.json
tests/eddsa_test.json test/eddsa_test.json
tests/helpers/dune test/ec/helpers/dune
tests/helpers/test_common.ml test/ec/helpers/test_common.ml
tests/random_selftests.ml tests/test_random_selftests.ml
-1
tests/test.ml
··· 14 14 Test_dh.suite; 15 15 Test_dsa.suite; 16 16 Test_rsa.suite; 17 - Test_crypto_ec.suite; 18 17 Test_entropy.suite; 19 18 ]
+1 -1
tests/test_crypto.ml
··· 1102 1102 chacha20_cases; 1103 1103 [ Alcotest.test_case "poly1305" `Quick poly1305_rfc8439_2_5_2 ]; 1104 1104 [ Alcotest.test_case "empty" `Quick empty_cases ]; 1105 - List.concat_map snd Random_selftests.suite; 1105 + List.concat_map snd Test_random_selftests.suite; 1106 1106 ] )
+1 -1
tests/test_crypto_ec.ml test/test_crypto_ec.ml
··· 1150 1150 point_module_tests (module P256) "P256"; 1151 1151 point_module_tests (module P384) "P384"; 1152 1152 point_module_tests (module P521) "P521"; 1153 - List.concat_map snd Ec_wycheproof.suite; 1153 + List.concat_map snd Test_ec_wycheproof.suite; 1154 1154 ] )
tests/test_crypto_ec.mli test/test_crypto_ec.mli
tests/wycheproof/dune test/ec/wycheproof/dune
tests/wycheproof/wycheproof.ml test/ec/wycheproof/wycheproof.ml
tests/wycheproof/wycheproof.mli test/ec/wycheproof/wycheproof.mli
tests/x25519_test.json test/x25519_test.json