From 9596076b3ae5d5eeb582c2928bf14cbd46121458 Mon Sep 17 00:00:00 2001 From: Davide Galassi Date: Thu, 20 Jun 2024 18:43:02 +0200 Subject: [PATCH] Rename test vectors files --- ...rs.json => bandersnatch_ed_sha512_ell2_ietf_vectors.json} | 0 ...ors.json => bandersnatch_sw_sha512_tai_ietf_vectors.json} | 0 ...tai_vectors.json => ed25519_sha512_tai_ietf_vectors.json} | 0 ...tai_vectors.json => secp256_sha256_tai_ietf_vectors.json} | 0 ...81.json => secp256_sha256_tai_ietf_vectors_rfc_9381.json} | 0 src/suites/bandersnatch.rs | 4 ++-- src/suites/ed25519.rs | 2 +- src/suites/secp256.rs | 5 +++-- 8 files changed, 6 insertions(+), 5 deletions(-) rename data/{bandersnatch_ed_sha512_ell2_vectors.json => bandersnatch_ed_sha512_ell2_ietf_vectors.json} (100%) rename data/{bandersnatch_sw_sha512_tai_vectors.json => bandersnatch_sw_sha512_tai_ietf_vectors.json} (100%) rename data/{ed25519_sha512_tai_vectors.json => ed25519_sha512_tai_ietf_vectors.json} (100%) rename data/{secp256_sha256_tai_vectors.json => secp256_sha256_tai_ietf_vectors.json} (100%) rename data/{secp256_sha256_tai_vectors_rfc_9381.json => secp256_sha256_tai_ietf_vectors_rfc_9381.json} (100%) diff --git a/data/bandersnatch_ed_sha512_ell2_vectors.json b/data/bandersnatch_ed_sha512_ell2_ietf_vectors.json similarity index 100% rename from data/bandersnatch_ed_sha512_ell2_vectors.json rename to data/bandersnatch_ed_sha512_ell2_ietf_vectors.json diff --git a/data/bandersnatch_sw_sha512_tai_vectors.json b/data/bandersnatch_sw_sha512_tai_ietf_vectors.json similarity index 100% rename from data/bandersnatch_sw_sha512_tai_vectors.json rename to data/bandersnatch_sw_sha512_tai_ietf_vectors.json diff --git a/data/ed25519_sha512_tai_vectors.json b/data/ed25519_sha512_tai_ietf_vectors.json similarity index 100% rename from data/ed25519_sha512_tai_vectors.json rename to data/ed25519_sha512_tai_ietf_vectors.json diff --git a/data/secp256_sha256_tai_vectors.json b/data/secp256_sha256_tai_ietf_vectors.json similarity index 100% rename from data/secp256_sha256_tai_vectors.json rename to data/secp256_sha256_tai_ietf_vectors.json diff --git a/data/secp256_sha256_tai_vectors_rfc_9381.json b/data/secp256_sha256_tai_ietf_vectors_rfc_9381.json similarity index 100% rename from data/secp256_sha256_tai_vectors_rfc_9381.json rename to data/secp256_sha256_tai_ietf_vectors_rfc_9381.json diff --git a/src/suites/bandersnatch.rs b/src/suites/bandersnatch.rs index 7cf45fa..c20e666 100644 --- a/src/suites/bandersnatch.rs +++ b/src/suites/bandersnatch.rs @@ -251,7 +251,7 @@ mod test_vectors_ed { const TEST_VECTORS_FILE: &str = concat!( env!("CARGO_MANIFEST_DIR"), - "/data/bandersnatch_ed_sha512_ell2_vectors.json" + "/data/bandersnatch_ed_sha512_ell2_ietf_vectors.json" ); #[test] @@ -275,7 +275,7 @@ mod test_vectors_sw { const TEST_VECTORS_FILE: &str = concat!( env!("CARGO_MANIFEST_DIR"), - "/data/bandersnatch_sw_sha512_tai_vectors.json" + "/data/bandersnatch_sw_sha512_tai_ietf_vectors.json" ); #[test] diff --git a/src/suites/ed25519.rs b/src/suites/ed25519.rs index 357290c..f526c81 100644 --- a/src/suites/ed25519.rs +++ b/src/suites/ed25519.rs @@ -86,7 +86,7 @@ mod test_vectors { const TEST_VECTORS_FILE: &str = concat!( env!("CARGO_MANIFEST_DIR"), - "/data/ed25519_sha512_tai_vectors.json" + "/data/ed25519_sha512_tai_ietf_vectors.json" ); #[test] diff --git a/src/suites/secp256.rs b/src/suites/secp256.rs index dbcc89c..1b43035 100644 --- a/src/suites/secp256.rs +++ b/src/suites/secp256.rs @@ -145,12 +145,13 @@ mod test_vectors { const TEST_VECTORS_FILE: &str = concat!( env!("CARGO_MANIFEST_DIR"), - "/data/secp256_sha256_tai_vectors.json" + "/data/secp256_sha256_tai_ietf_vectors.json" ); + // Vectors from RFC-9381 const TEST_VECTORS_FILE_RFC_9381: &str = concat!( env!("CARGO_MANIFEST_DIR"), - "/data/secp256_sha256_tai_vectors_rfc_9381.json" + "/data/secp256_sha256_tai_ietf_vectors_rfc_9381.json" ); #[test]