Skip to content

Commit

Permalink
Add missing test vectors to testdata/testvectors/BUILD.bazel
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 597761274
Change-Id: I6a449f305a1fe32abcf0bc1619b2776924d5726a
  • Loading branch information
morambro authored and copybara-github committed Jan 12, 2024
1 parent 6967087 commit 8d0456d
Showing 1 changed file with 61 additions and 2 deletions.
63 changes: 61 additions & 2 deletions testdata/testvectors/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,13 @@ genrule(
genrule(
name = "rsa_pss",
testonly = 1,
srcs = ["@wycheproof//testvectors:rsa_pss"],
srcs = ["@wycheproof//testvectors:all"],
outs = [
"rsa_pss_2048_sha1_mgf1_20_test.json",
"rsa_pss_2048_sha256_mgf1_0_test.json",
"rsa_pss_2048_sha256_mgf1_32_test.json",
"rsa_pss_2048_sha512_256_mgf1_28_test.json",
"rsa_pss_2048_sha512_256_mgf1_32_test.json",
"rsa_pss_3072_sha256_mgf1_32_test.json",
"rsa_pss_4096_sha256_mgf1_32_test.json",
"rsa_pss_4096_sha512_mgf1_32_test.json",
Expand Down Expand Up @@ -140,7 +142,7 @@ genrule(
genrule(
name = "ecdsa",
testonly = 1,
srcs = ["@wycheproof//testvectors:ecdsa"],
srcs = ["@wycheproof//testvectors:all"],
outs = [
"ecdsa_brainpoolP224r1_sha224_test.json",
"ecdsa_brainpoolP256r1_sha256_test.json",
Expand All @@ -167,6 +169,9 @@ genrule(
"ecdsa_secp384r1_sha512_test.json",
"ecdsa_secp521r1_sha3_512_test.json",
"ecdsa_secp521r1_sha512_test.json",
"ecdsa_secp256r1_sha256_p1363_test.json",
"ecdsa_secp384r1_sha512_p1363_test.json",
"ecdsa_secp521r1_sha512_p1363_test.json",
"ecdsa_test.json", # deprecated: use the files above
],
cmd = "cp $(SRCS) $(@D)/",
Expand Down Expand Up @@ -202,3 +207,57 @@ genrule(
],
cmd = "cp $(SRCS) $(@D)/",
)

genrule(
name = "ecdh_ecpoint",
testonly = 1,
srcs = ["@wycheproof//testvectors:ecdh_ecpoint"],
outs = [
"ecdh_secp224r1_ecpoint_test.json",
"ecdh_secp256r1_ecpoint_test.json",
"ecdh_secp384r1_ecpoint_test.json",
"ecdh_secp521r1_ecpoint_test.json",
],
cmd = "cp $(SRCS) $(@D)/",
)

genrule(
name = "keywrap",
testonly = 1,
srcs = ["@wycheproof//testvectors:keywrap"],
outs = [
"kw_test.json",
"kwp_test.json",
],
cmd = "cp $(SRCS) $(@D)/",
)

genrule(
name = "kdf",
testonly = 1,
srcs = ["@wycheproof//testvectors:kdf"],
outs = [
"hkdf_sha1_test.json",
"hkdf_sha256_test.json",
"hkdf_sha384_test.json",
"hkdf_sha512_test.json",
],
cmd = "cp $(SRCS) $(@D)/",
)

genrule(
name = "xdh",
testonly = 1,
srcs = ["@wycheproof//testvectors:xdh"],
outs = [
"x25519_asn_test.json",
"x25519_jwk_test.json",
"x25519_pem_test.json",
"x25519_test.json",
"x448_asn_test.json",
"x448_jwk_test.json",
"x448_pem_test.json",
"x448_test.json",
],
cmd = "cp $(SRCS) $(@D)/",
)

0 comments on commit 8d0456d

Please sign in to comment.