mirror of
https://github.com/saymrwulf/curve25519-dalek-source.git
synced 2026-09-06 20:41:14 +00:00
Remove unnecessary if statement
This commit is contained in:
parent
73e172484c
commit
e74bf8e789
1 changed files with 1 additions and 7 deletions
|
|
@ -947,13 +947,7 @@ impl ExtendedPoint {
|
||||||
///
|
///
|
||||||
/// True if it is of small order; false otherwise.
|
/// True if it is of small order; false otherwise.
|
||||||
pub fn is_small_order(&self) -> bool {
|
pub fn is_small_order(&self) -> bool {
|
||||||
let p8: ExtendedPoint = self.mult_by_pow_2(3);
|
self.mult_by_cofactor().is_identity()
|
||||||
|
|
||||||
if p8.is_identity() {
|
|
||||||
return true;
|
|
||||||
} else {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue