Add test generation for bignum cmp variant

Signed-off-by: Werner Lewis <werner.lewis@arm.com>
This commit is contained in:
Werner Lewis 2022-07-18 15:49:43 +01:00
parent 8b2df74b12
commit 69a92ce497

View file

@ -194,6 +194,16 @@ class BignumCmp(BignumOperation):
return str(self._result)
class BignumCmpAbs(BignumCmp):
"""Target for abs comparison variant."""
count = 0
func = "mbedtls_mpi_cmp_abs"
title = "MPI compare (abs)"
def __init__(self, val_l, val_r):
super().__init__(val_l.strip("-"), val_r.strip("-"))
class TestGenerator:
"""Generate test data."""