3.5.1 Document presence of k256/p256

This commit is contained in:
Luke Parker 2023-02-24 05:28:31 -05:00
parent 65376e93e5
commit 32c18cac84
No known key found for this signature in database

View file

@ -157,12 +157,20 @@ where
test_prime_group::<G>();
}
// 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::<k256::ProjectivePoint>();
}
#[test]
fn test_p256_group_encoding() {
fn test_p256() {
test_prime_group_bits::<p256::ProjectivePoint>();
}