mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-02-25 09:41:00 +00:00
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
@ -194,6 +194,16 @@ class BignumCmp(BignumOperation):
|
|||||||
return str(self._result)
|
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:
|
class TestGenerator:
|
||||||
"""Generate test data."""
|
"""Generate test data."""
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user