mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-30 22:43:08 +03:00
Add corner case to mod_p521 tests
Signed-off-by: Janos Follath <janos.follath@arm.com> Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
This commit is contained in:
committed by
Gabor Mezei
parent
13c3aa13af
commit
755ff0e685
@ -91,6 +91,13 @@ class EcpP521R1Raw(bignum_common.ModOperationCommon,
|
|||||||
input_values = [
|
input_values = [
|
||||||
"0", "1",
|
"0", "1",
|
||||||
|
|
||||||
|
# Corner case: maximum canonical P521 multiplication result
|
||||||
|
("0003ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
|
||||||
|
"ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
|
||||||
|
"fffff800"
|
||||||
|
"0000000000000000000000000000000000000000000000000000000000000000"
|
||||||
|
"0000000000000000000000000000000000000000000000000000000000000004"),
|
||||||
|
|
||||||
# Test case for overflow during addition
|
# Test case for overflow during addition
|
||||||
("0001efffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
|
("0001efffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
|
||||||
"ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
|
"ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
|
||||||
|
Reference in New Issue
Block a user