mirror of
https://github.com/saymrwulf/curve25519-dalek-source.git
synced 2026-09-04 20:24:10 +00:00
The identity point is already in EIGHT_TORSION
This commit is contained in:
parent
cf24cb8900
commit
e446bc8a1f
1 changed files with 2 additions and 1 deletions
|
|
@ -1263,8 +1263,9 @@ mod test {
|
|||
|
||||
#[test]
|
||||
fn is_small_order() {
|
||||
assert!(ExtendedPoint::identity().is_small_order() == true);
|
||||
// The basepoint has large prime order
|
||||
assert!(constants::BASEPOINT.is_small_order() == false);
|
||||
// constants::EIGHT_TORSION has all points of small order.
|
||||
for torsion_point in &constants::EIGHT_TORSION {
|
||||
assert!(torsion_point.is_small_order() == true);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue