mirror of
https://github.com/yuzu-mirror/mbedtls.git
synced 2026-04-04 22:19:05 +00:00
Fix typos
Signed-off-by: Tom Cosgrove <tom.cosgrove@arm.com>
This commit is contained in:
parent
342d00bc22
commit
f723754f6d
5 changed files with 7 additions and 7 deletions
|
|
@ -249,7 +249,7 @@ class ModOperationCommon(OperationCommon):
|
|||
#pylint: disable=abstract-method
|
||||
"""Target for bignum mod_raw test case generation."""
|
||||
moduli = MODULI_DEFAULT # type: List[str]
|
||||
mongtomgery_form_a = False
|
||||
montgomery_form_a = False
|
||||
disallow_zero_a = False
|
||||
|
||||
def __init__(self, val_n: str, val_a: str, val_b: str = "0",
|
||||
|
|
@ -272,7 +272,7 @@ class ModOperationCommon(OperationCommon):
|
|||
|
||||
@property
|
||||
def arg_a(self) -> str:
|
||||
if self.mongtomgery_form_a:
|
||||
if self.montgomery_form_a:
|
||||
value_a = self.to_montgomery(self.int_a)
|
||||
else:
|
||||
value_a = self.int_a
|
||||
|
|
|
|||
|
|
@ -757,7 +757,7 @@ class BignumCoreExpMod(BignumCoreTarget, bignum_common.ModOperationCommon):
|
|||
test_function = "mpi_core_exp_mod"
|
||||
test_name = "Core modular exponentiation (Mongtomery form only)"
|
||||
input_style = "fixed"
|
||||
mongtomgery_form_a = True
|
||||
montgomery_form_a = True
|
||||
|
||||
def result(self) -> List[str]:
|
||||
# Result has to be given in Montgomery form too
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@ class BignumModInvMont(bignum_common.ModOperationCommon, BignumModTarget):
|
|||
arity = 1
|
||||
suffix = True
|
||||
disallow_zero_a = True
|
||||
mongtomgery_form_a = True
|
||||
montgomery_form_a = True
|
||||
|
||||
def result(self) -> List[str]:
|
||||
result = bignum_common.invmod_positive(self.int_a, self.int_n)
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ class BignumModRawInvPrime(bignum_common.ModOperationCommon,
|
|||
input_style = "arch_split"
|
||||
arity = 1
|
||||
suffix = True
|
||||
mongtomgery_form_a = True
|
||||
montgomery_form_a = True
|
||||
disallow_zero_a = True
|
||||
|
||||
def result(self) -> List[str]:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue