mirror of
https://github.com/saymrwulf/curve25519-dalek-source.git
synced 2026-09-04 20:24:10 +00:00
Test multiplication by basepoint order
This commit is contained in:
parent
80d4566853
commit
7a2ea44ce6
1 changed files with 7 additions and 0 deletions
|
|
@ -1270,6 +1270,13 @@ mod test {
|
|||
assert_eq!(aB.compress_edwards(), A_TIMES_BASEPOINT);
|
||||
}
|
||||
|
||||
/// Test that multiplication by the basepoint order kills the basepoint
|
||||
#[test]
|
||||
fn basepoint_mult_by_basepoint_order() {
|
||||
let should_be_id = ExtendedPoint::basepoint_mult(&constants::l);
|
||||
assert!(should_be_id.is_identity());
|
||||
}
|
||||
|
||||
/// Test scalar_mult versus a known scalar multiple from ed25519.py
|
||||
#[test]
|
||||
fn scalar_mult_vs_ed25519py() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue