mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-02-20 03:39:58 +00:00
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
@ -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…
x
Reference in New Issue
Block a user