mirror of
https://github.com/serai-dex/serai.git
synced 2024-12-23 03:59:22 +00:00
3.5.1 Document presence of k256/p256
This commit is contained in:
parent
65376e93e5
commit
32c18cac84
1 changed files with 10 additions and 2 deletions
|
@ -157,12 +157,20 @@ where
|
||||||
test_prime_group::<G>();
|
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]
|
#[test]
|
||||||
fn test_k256_group_encoding() {
|
fn test_k256() {
|
||||||
test_prime_group_bits::<k256::ProjectivePoint>();
|
test_prime_group_bits::<k256::ProjectivePoint>();
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_p256_group_encoding() {
|
fn test_p256() {
|
||||||
test_prime_group_bits::<p256::ProjectivePoint>();
|
test_prime_group_bits::<p256::ProjectivePoint>();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue