conformance: cross-check the awslc provider
awslc must reproduce the pinned vectors byte for byte and interoperate on KEMs; regenerating only added it to provider lists, no output changed. Refs: R3
This commit is contained in:
parent
9310fe1262
commit
7de21de817
|
|
@ -385,6 +385,7 @@ name = "ccc-conformance-tests"
|
|||
version = "0.2.0"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"ccc-crypto-awslc",
|
||||
"ccc-crypto-boring",
|
||||
"ccc-crypto-core",
|
||||
"ccc-crypto-rustcrypto",
|
||||
|
|
|
|||
|
|
@ -21,5 +21,6 @@ env_logger = { workspace = true }
|
|||
[dev-dependencies]
|
||||
ccc-crypto-rustcrypto = { workspace = true }
|
||||
ccc-crypto-boring = { path = "../../crates/ccc-crypto-boring" }
|
||||
ccc-crypto-awslc = { path = "../../crates/ccc-crypto-awslc" }
|
||||
serde = { workspace = true }
|
||||
serde_json = { workspace = true }
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@ use ccc_crypto_core::{
|
|||
provider::{CryptoProvider, KemProvider},
|
||||
};
|
||||
use ccc_crypto_boring::BoringProvider;
|
||||
use ccc_crypto_awslc::AwsLcProvider;
|
||||
use ccc_crypto_rustcrypto::RustCryptoProvider;
|
||||
use ccc_crypto_wolfssl::WolfSslProvider;
|
||||
|
||||
|
|
@ -37,6 +38,7 @@ fn providers() -> Vec<Box<dyn Provider>> {
|
|||
Box::new(WolfSslProvider::new()),
|
||||
Box::new(RustCryptoProvider::new()),
|
||||
Box::new(BoringProvider::new()),
|
||||
Box::new(AwsLcProvider::new()),
|
||||
]
|
||||
}
|
||||
|
||||
|
|
@ -370,8 +372,8 @@ fn file_covers_shared_algorithms() {
|
|||
let v = load();
|
||||
assert_eq!(v.version, 1);
|
||||
let shared = |p: &[String]| p.len() >= 2;
|
||||
// The algorithms both providers offer today must be cross-checked.
|
||||
for id in [12u32, 13, 14] {
|
||||
// The algorithms at least two providers offer today must be cross-checked.
|
||||
for id in [12u32, 13, 14, 16] {
|
||||
assert!(
|
||||
v.aead.iter().any(|a| a.id == id && shared(&a.providers)),
|
||||
"AEAD {id}"
|
||||
|
|
|
|||
|
|
@ -13,7 +13,8 @@
|
|||
"providers": [
|
||||
"wolfssl",
|
||||
"rustcrypto",
|
||||
"boring"
|
||||
"boring",
|
||||
"awslc"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
@ -27,7 +28,8 @@
|
|||
"providers": [
|
||||
"wolfssl",
|
||||
"rustcrypto",
|
||||
"boring"
|
||||
"boring",
|
||||
"awslc"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
@ -41,7 +43,8 @@
|
|||
"providers": [
|
||||
"wolfssl",
|
||||
"rustcrypto",
|
||||
"boring"
|
||||
"boring",
|
||||
"awslc"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
@ -55,7 +58,8 @@
|
|||
"providers": [
|
||||
"wolfssl",
|
||||
"rustcrypto",
|
||||
"boring"
|
||||
"boring",
|
||||
"awslc"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
@ -69,7 +73,8 @@
|
|||
"providers": [
|
||||
"wolfssl",
|
||||
"rustcrypto",
|
||||
"boring"
|
||||
"boring",
|
||||
"awslc"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
@ -83,7 +88,8 @@
|
|||
"providers": [
|
||||
"wolfssl",
|
||||
"rustcrypto",
|
||||
"boring"
|
||||
"boring",
|
||||
"awslc"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
@ -97,7 +103,8 @@
|
|||
"providers": [
|
||||
"wolfssl",
|
||||
"rustcrypto",
|
||||
"boring"
|
||||
"boring",
|
||||
"awslc"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
@ -111,7 +118,8 @@
|
|||
"providers": [
|
||||
"wolfssl",
|
||||
"rustcrypto",
|
||||
"boring"
|
||||
"boring",
|
||||
"awslc"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
@ -125,7 +133,8 @@
|
|||
"providers": [
|
||||
"wolfssl",
|
||||
"rustcrypto",
|
||||
"boring"
|
||||
"boring",
|
||||
"awslc"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
@ -139,7 +148,8 @@
|
|||
"providers": [
|
||||
"wolfssl",
|
||||
"rustcrypto",
|
||||
"boring"
|
||||
"boring",
|
||||
"awslc"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
@ -221,7 +231,8 @@
|
|||
"pt": "",
|
||||
"ct": "be2f20da6eb872a1b3a3c827f8530e91",
|
||||
"providers": [
|
||||
"rustcrypto"
|
||||
"rustcrypto",
|
||||
"awslc"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
@ -233,7 +244,8 @@
|
|||
"pt": "c0",
|
||||
"ct": "2f17327467798e052622db3e3bfb69be1f",
|
||||
"providers": [
|
||||
"rustcrypto"
|
||||
"rustcrypto",
|
||||
"awslc"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
@ -245,7 +257,8 @@
|
|||
"pt": "",
|
||||
"ct": "71dedf0fe58c82f6dffebc1476702f5d",
|
||||
"providers": [
|
||||
"rustcrypto"
|
||||
"rustcrypto",
|
||||
"awslc"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
@ -257,7 +270,8 @@
|
|||
"pt": "36dd842bd27920c76e15bc630ab158ffa64df49b42e99037de852cd37a21c86f16bd640bb2",
|
||||
"ct": "d85d1b441c21e7e21406f561fdaa070a32cf4fc4fbe2177bc3a7400cc3c1295386fc559985dc764dfbf9ee38ad27adb8d644629402",
|
||||
"providers": [
|
||||
"rustcrypto"
|
||||
"rustcrypto",
|
||||
"awslc"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
@ -269,7 +283,8 @@
|
|||
"pt": "7118bf660db45b02a950f79e45ec933ae1882fd67d24cb7219c0670eb55c03aa51f89f46ed943be28930d77e25cc731ac1680fb65d04ab52f9a047ee953ce38a31d87f26cd741bc26910b75e05ac53faa148ef963de48b32d98027ce751cc36a11b85f06ad54fba249f0973ee58c33da8128cf761dc46b12b96007ae55fca34af1983fe68d34db8229d0771ec56c13ba6108af56fda44bf29940e78e35dc832ad1781fc66d14bb6209b057fea54cf39a41e88f36dd842bd27920c76e15bc630ab158ffa64df49b42e99037de852cd37a21c86f16bd640bb25900a74ef59c43ea9138df862dd47b22c97017be650cb35a01a84ff69d44eb9239e0872ed57c23ca7118bf660db45b02a950f79e45ec933ae1882fd67d24cb7219c0670eb55c03aa51f89f46ed943be28930d77e",
|
||||
"ct": "6a27e5be632d8e3edd8a3f783f4af448c2999d374e441f7d5995ff2c86596b602a3a28c73528f1ee3036bcceaf99911273118535a4ae8ac4bf93bf12afd28721a76aa32c4a2ab11f4dbc7dbc841eb9ed724dec4666e503e6e4df24daecadb9784f5fef83dcacbdce6fa02235a2fe897220528a0e29a627b9f6a30e80c545e7b2e291b2ef4e5d4058ef7f73d92be414b57b85f64c762296d46800ff0055d7a62b8d7283d28aeb47f73c0c1be9c67afb483a2c9209accaacd84a47bd3236e729d4e59a5c8a7bc4313230c4ad6e9798b03153a7a2a6187835ef96f123cadef09dabac557537c0c2cd8ff268f4538336b21cb29bd986824bb88113aa79f32f19301a7c647ad7d073e0ae3f8d644ac4432b47eaa691aad4f4d742f278edf775fdf0a0a75c8cbbe4a358ace0c728ec769944ce4d1bd228bb68e885aa042767",
|
||||
"providers": [
|
||||
"rustcrypto"
|
||||
"rustcrypto",
|
||||
"awslc"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
@ -345,7 +360,8 @@
|
|||
"providers": [
|
||||
"wolfssl",
|
||||
"rustcrypto",
|
||||
"boring"
|
||||
"boring",
|
||||
"awslc"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
@ -359,7 +375,8 @@
|
|||
"providers": [
|
||||
"wolfssl",
|
||||
"rustcrypto",
|
||||
"boring"
|
||||
"boring",
|
||||
"awslc"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
@ -373,7 +390,8 @@
|
|||
"providers": [
|
||||
"wolfssl",
|
||||
"rustcrypto",
|
||||
"boring"
|
||||
"boring",
|
||||
"awslc"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
@ -387,7 +405,8 @@
|
|||
"providers": [
|
||||
"wolfssl",
|
||||
"rustcrypto",
|
||||
"boring"
|
||||
"boring",
|
||||
"awslc"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
@ -401,7 +420,8 @@
|
|||
"providers": [
|
||||
"wolfssl",
|
||||
"rustcrypto",
|
||||
"boring"
|
||||
"boring",
|
||||
"awslc"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
@ -415,7 +435,8 @@
|
|||
"providers": [
|
||||
"wolfssl",
|
||||
"rustcrypto",
|
||||
"boring"
|
||||
"boring",
|
||||
"awslc"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
@ -429,7 +450,8 @@
|
|||
"providers": [
|
||||
"wolfssl",
|
||||
"rustcrypto",
|
||||
"boring"
|
||||
"boring",
|
||||
"awslc"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
@ -443,7 +465,8 @@
|
|||
"providers": [
|
||||
"wolfssl",
|
||||
"rustcrypto",
|
||||
"boring"
|
||||
"boring",
|
||||
"awslc"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
@ -457,7 +480,8 @@
|
|||
"providers": [
|
||||
"wolfssl",
|
||||
"rustcrypto",
|
||||
"boring"
|
||||
"boring",
|
||||
"awslc"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
@ -523,7 +547,8 @@
|
|||
"providers": [
|
||||
"wolfssl",
|
||||
"rustcrypto",
|
||||
"boring"
|
||||
"boring",
|
||||
"awslc"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
@ -535,7 +560,8 @@
|
|||
"providers": [
|
||||
"wolfssl",
|
||||
"rustcrypto",
|
||||
"boring"
|
||||
"boring",
|
||||
"awslc"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
@ -547,7 +573,8 @@
|
|||
"providers": [
|
||||
"wolfssl",
|
||||
"rustcrypto",
|
||||
"boring"
|
||||
"boring",
|
||||
"awslc"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
@ -559,7 +586,8 @@
|
|||
"providers": [
|
||||
"wolfssl",
|
||||
"rustcrypto",
|
||||
"boring"
|
||||
"boring",
|
||||
"awslc"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
@ -571,7 +599,8 @@
|
|||
"providers": [
|
||||
"wolfssl",
|
||||
"rustcrypto",
|
||||
"boring"
|
||||
"boring",
|
||||
"awslc"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
@ -583,7 +612,8 @@
|
|||
"providers": [
|
||||
"wolfssl",
|
||||
"rustcrypto",
|
||||
"boring"
|
||||
"boring",
|
||||
"awslc"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
@ -595,7 +625,8 @@
|
|||
"providers": [
|
||||
"wolfssl",
|
||||
"rustcrypto",
|
||||
"boring"
|
||||
"boring",
|
||||
"awslc"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
@ -607,7 +638,8 @@
|
|||
"providers": [
|
||||
"wolfssl",
|
||||
"rustcrypto",
|
||||
"boring"
|
||||
"boring",
|
||||
"awslc"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
@ -619,7 +651,8 @@
|
|||
"providers": [
|
||||
"wolfssl",
|
||||
"rustcrypto",
|
||||
"boring"
|
||||
"boring",
|
||||
"awslc"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
@ -664,7 +697,8 @@
|
|||
"providers": [
|
||||
"wolfssl",
|
||||
"rustcrypto",
|
||||
"boring"
|
||||
"boring",
|
||||
"awslc"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
@ -675,7 +709,8 @@
|
|||
"providers": [
|
||||
"wolfssl",
|
||||
"rustcrypto",
|
||||
"boring"
|
||||
"boring",
|
||||
"awslc"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
@ -686,7 +721,8 @@
|
|||
"providers": [
|
||||
"wolfssl",
|
||||
"rustcrypto",
|
||||
"boring"
|
||||
"boring",
|
||||
"awslc"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
@ -697,7 +733,8 @@
|
|||
"providers": [
|
||||
"wolfssl",
|
||||
"rustcrypto",
|
||||
"boring"
|
||||
"boring",
|
||||
"awslc"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
@ -708,7 +745,8 @@
|
|||
"providers": [
|
||||
"wolfssl",
|
||||
"rustcrypto",
|
||||
"boring"
|
||||
"boring",
|
||||
"awslc"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
@ -719,7 +757,8 @@
|
|||
"providers": [
|
||||
"wolfssl",
|
||||
"rustcrypto",
|
||||
"boring"
|
||||
"boring",
|
||||
"awslc"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
@ -730,7 +769,8 @@
|
|||
"providers": [
|
||||
"wolfssl",
|
||||
"rustcrypto",
|
||||
"boring"
|
||||
"boring",
|
||||
"awslc"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
@ -741,7 +781,8 @@
|
|||
"providers": [
|
||||
"wolfssl",
|
||||
"rustcrypto",
|
||||
"boring"
|
||||
"boring",
|
||||
"awslc"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
@ -752,7 +793,8 @@
|
|||
"providers": [
|
||||
"wolfssl",
|
||||
"rustcrypto",
|
||||
"boring"
|
||||
"boring",
|
||||
"awslc"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
@ -763,7 +805,8 @@
|
|||
"providers": [
|
||||
"wolfssl",
|
||||
"rustcrypto",
|
||||
"boring"
|
||||
"boring",
|
||||
"awslc"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
@ -774,7 +817,8 @@
|
|||
"providers": [
|
||||
"wolfssl",
|
||||
"rustcrypto",
|
||||
"boring"
|
||||
"boring",
|
||||
"awslc"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
@ -785,7 +829,8 @@
|
|||
"providers": [
|
||||
"wolfssl",
|
||||
"rustcrypto",
|
||||
"boring"
|
||||
"boring",
|
||||
"awslc"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
@ -835,7 +880,8 @@
|
|||
"digest": "a7ffc6f8bf1ed76651c14756a061d662f580ff4de43b49fa82d80a4b80f8434a",
|
||||
"providers": [
|
||||
"wolfssl",
|
||||
"rustcrypto"
|
||||
"rustcrypto",
|
||||
"awslc"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
@ -845,7 +891,8 @@
|
|||
"digest": "6354439fdce9e1ceb52fec06252244ab2272951452b72c7a772cea0e94819645",
|
||||
"providers": [
|
||||
"wolfssl",
|
||||
"rustcrypto"
|
||||
"rustcrypto",
|
||||
"awslc"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
@ -855,7 +902,8 @@
|
|||
"digest": "a4c2505ac6811573de9ae9a8ccdfe6c0de4f92f6c7f25bf17bcd13bc756b6c00",
|
||||
"providers": [
|
||||
"wolfssl",
|
||||
"rustcrypto"
|
||||
"rustcrypto",
|
||||
"awslc"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
@ -865,7 +913,8 @@
|
|||
"digest": "1847dfbe39ec0040b9b36a5e90fdfef81c26f82a93ecf82b84f0f5e900905186",
|
||||
"providers": [
|
||||
"wolfssl",
|
||||
"rustcrypto"
|
||||
"rustcrypto",
|
||||
"awslc"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
@ -875,7 +924,8 @@
|
|||
"digest": "a69f73cca23a9ac5c8b567dc185a756e97c982164fe25859e0d1dcc1475c80a615b2123af1f5f94c11e3e9402c3ac558f500199d95b6d3e301758586281dcd26",
|
||||
"providers": [
|
||||
"wolfssl",
|
||||
"rustcrypto"
|
||||
"rustcrypto",
|
||||
"awslc"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
@ -885,7 +935,8 @@
|
|||
"digest": "a87cc2de4652fbeca8be53d8741cb27915d3b6a90692389d98cbde19f7560af287e9bc86addc83313edee950f6afbab58c7708771814d28983d0ebba2003506c",
|
||||
"providers": [
|
||||
"wolfssl",
|
||||
"rustcrypto"
|
||||
"rustcrypto",
|
||||
"awslc"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
@ -895,7 +946,8 @@
|
|||
"digest": "b8dbb4859005aa0791ce3a1a11ec50a156a127d2d2209add8a4cc25ee929e3ec18bbb30002df515d33fbbd3c3304d1a7ef3ffa7298577198afc9a10aea3311cc",
|
||||
"providers": [
|
||||
"wolfssl",
|
||||
"rustcrypto"
|
||||
"rustcrypto",
|
||||
"awslc"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
@ -905,7 +957,8 @@
|
|||
"digest": "d243caeda20b065dfd6115e4b99f5095820b1f278f73f94ab7bfc7e278b0246167632eff2f5889a41ccb407864b71fd267160c12214b47a969d8305295d3457e",
|
||||
"providers": [
|
||||
"wolfssl",
|
||||
"rustcrypto"
|
||||
"rustcrypto",
|
||||
"awslc"
|
||||
]
|
||||
}
|
||||
],
|
||||
|
|
@ -919,7 +972,8 @@
|
|||
"providers": [
|
||||
"wolfssl",
|
||||
"rustcrypto",
|
||||
"boring"
|
||||
"boring",
|
||||
"awslc"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
@ -931,7 +985,8 @@
|
|||
"providers": [
|
||||
"wolfssl",
|
||||
"rustcrypto",
|
||||
"boring"
|
||||
"boring",
|
||||
"awslc"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
@ -943,7 +998,8 @@
|
|||
"providers": [
|
||||
"wolfssl",
|
||||
"rustcrypto",
|
||||
"boring"
|
||||
"boring",
|
||||
"awslc"
|
||||
]
|
||||
}
|
||||
]
|
||||
|
|
|
|||
Loading…
Reference in New Issue