Add test generation for bignum cmp variant
Signed-off-by: Werner Lewis <werner.lewis@arm.com>
This commit is contained in:
parent
8b2df74b12
commit
69a92ce497
1 changed files with 10 additions and 0 deletions
|
@ -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."""
|
||||
|
||||
|
|
Loading…
Reference in a new issue