Add test cases for P521 fast reduction testing
Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
This commit is contained in:
parent
64a229f6ac
commit
a9a68728b3
1 changed files with 9 additions and 1 deletions
|
@ -351,7 +351,15 @@ class EcpP521R1Raw(bignum_common.ModOperationCommon,
|
||||||
input_values = [
|
input_values = [
|
||||||
"0", "1",
|
"0", "1",
|
||||||
|
|
||||||
# Corner case: maximum canonical P521 multiplication result
|
# Modulus - 1
|
||||||
|
("01ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
|
||||||
|
"fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe"),
|
||||||
|
|
||||||
|
# Modulus + 1
|
||||||
|
("020000000000000000000000000000000000000000000000000000000000000000"
|
||||||
|
"000000000000000000000000000000000000000000000000000000000000000000"),
|
||||||
|
|
||||||
|
# Maximum canonical P521 multiplication result
|
||||||
("0003ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
|
("0003ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
|
||||||
"ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
|
"ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
|
||||||
"fffff800"
|
"fffff800"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue