mirror of
https://github.com/saymrwulf/curve25519-dalek-source.git
synced 2026-09-04 20:24:10 +00:00
Remove old tests that aren't so useful any more
This commit is contained in:
parent
78fe9c490d
commit
9414a2f4db
1 changed files with 0 additions and 20 deletions
20
src/curve.rs
20
src/curve.rs
|
|
@ -1248,26 +1248,6 @@ mod test {
|
|||
assert_eq!(bp16.compress(), BASE16_CMPRSSD);
|
||||
}
|
||||
|
||||
/// The basepoint, doubled, minus the basepoint should equal the basepoint.
|
||||
#[test]
|
||||
fn ge_sub() {
|
||||
let p1: ExtendedPoint = constants::BASE_CMPRSSD.decompress().unwrap();
|
||||
let p2: ExtendedPoint = BASE2_CMPRSSD.decompress().unwrap();
|
||||
let p3: ExtendedPoint = (&p2 - &p1.to_projective_niels()).to_extended();
|
||||
|
||||
assert_eq!(p1.compress(), p3.compress());
|
||||
}
|
||||
|
||||
/// The basepoint plus the identity should equal the basepoint.
|
||||
#[test]
|
||||
fn ge_add() {
|
||||
let p1: ExtendedPoint = constants::BASE_CMPRSSD.decompress().unwrap();
|
||||
let p2: ExtendedPoint = ExtendedPoint::identity();
|
||||
let p3: ExtendedPoint = (&p1 + &p2.to_projective_niels()).to_extended();
|
||||
|
||||
assert_eq!(p1.compress(), p3.compress());
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn AffineNielsPoint_conditional_assign() {
|
||||
let id = AffineNielsPoint::identity();
|
||||
|
|
|
|||
Loading…
Reference in a new issue