mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-31 10:20:45 +00:00
Bignum tests: add support for fixed width input
Only fixed width input_style uses the default value of the bits_in_limb parameter, so set it to 32 in order to have less leading zeroes. Signed-off-by: Janos Follath <janos.follath@arm.com>
This commit is contained in:
parent
8ae7a657ac
commit
a36e430251
@ -93,13 +93,13 @@ class OperationCommon(test_data_generation.BaseTest):
|
|||||||
input_values = [] # type: List[str]
|
input_values = [] # type: List[str]
|
||||||
input_cases = [] # type: List[Any]
|
input_cases = [] # type: List[Any]
|
||||||
unique_combinations_only = True
|
unique_combinations_only = True
|
||||||
input_styles = ["variable", "arch_split"] # type: List[str]
|
input_styles = ["variable", "fixed", "arch_split"] # type: List[str]
|
||||||
input_style = "variable" # type: str
|
input_style = "variable" # type: str
|
||||||
limb_sizes = [32, 64] # type: List[int]
|
limb_sizes = [32, 64] # type: List[int]
|
||||||
arities = [1, 2]
|
arities = [1, 2]
|
||||||
arity = 2
|
arity = 2
|
||||||
|
|
||||||
def __init__(self, val_a: str, val_b: str = "0", bits_in_limb: int = 64) -> None:
|
def __init__(self, val_a: str, val_b: str = "0", bits_in_limb: int = 32) -> None:
|
||||||
self.val_a = val_a
|
self.val_a = val_a
|
||||||
self.val_b = val_b
|
self.val_b = val_b
|
||||||
# Setting the int versions here as opposed to making them @properties
|
# Setting the int versions here as opposed to making them @properties
|
||||||
|
Loading…
x
Reference in New Issue
Block a user