mirror of
https://github.com/saymrwulf/risc0-curve25519-dalek-source.git
synced 2026-09-04 20:03:40 +00:00
Remove test for validity of randomly generated RistrettoPoints.
This test is no longer necessary as it originally had a possibility of failure due to the original implementation of the invsqrt() function in the decompression algorithm. The failure with the current API is nonexistent. * FIXES #288.
This commit is contained in:
parent
7989fe54f8
commit
0709a27e46
1 changed files with 0 additions and 13 deletions
|
|
@ -1322,19 +1322,6 @@ mod test {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "rand")]
|
||||
#[test]
|
||||
fn random_is_valid() {
|
||||
let mut rng = OsRng::new().unwrap();
|
||||
for _ in 0..100 {
|
||||
let P = RistrettoPoint::random(&mut rng);
|
||||
// Check that P is on the curve
|
||||
assert!(P.0.is_valid());
|
||||
// Check that P is in the image of the ristretto map
|
||||
P.compress();
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn vartime_precomputed_vs_nonprecomputed_multiscalar() {
|
||||
let mut rng = rand::thread_rng();
|
||||
|
|
|
|||
Loading…
Reference in a new issue