From 32c18cac843b47d62f9946d053a59322f6e1fd9f Mon Sep 17 00:00:00 2001 From: Luke Parker Date: Fri, 24 Feb 2023 05:28:31 -0500 Subject: [PATCH] 3.5.1 Document presence of k256/p256 --- crypto/ff-group-tests/src/group.rs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/crypto/ff-group-tests/src/group.rs b/crypto/ff-group-tests/src/group.rs index 7dd6a213..ebf8cdec 100644 --- a/crypto/ff-group-tests/src/group.rs +++ b/crypto/ff-group-tests/src/group.rs @@ -157,12 +157,20 @@ where test_prime_group::(); } +// Run these tests against k256/p256 +// This ensures that these tests are well formed and won't error for valid implementations, +// assuming the validity of k256/p256 +// While k256 and p256 may be malformed in a way which coincides with a faulty test, this is +// considered unlikely +// The other option, not running against any libraries, would leave faulty tests completely +// undetected + #[test] -fn test_k256_group_encoding() { +fn test_k256() { test_prime_group_bits::(); } #[test] -fn test_p256_group_encoding() { +fn test_p256() { test_prime_group_bits::(); }