mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-22 04:01:53 +03:00
@ -770,11 +770,7 @@ class BignumCoreExpMod(BignumCoreTarget, bignum_common.ModOperationCommon):
|
|||||||
def is_valid(self) -> bool:
|
def is_valid(self) -> bool:
|
||||||
# The base needs to be canonical, but the exponent can be larger than
|
# The base needs to be canonical, but the exponent can be larger than
|
||||||
# the modulus (see for example exponent blinding)
|
# the modulus (see for example exponent blinding)
|
||||||
if self.int_a < self.int_n:
|
return bool(self.int_a < self.int_n)
|
||||||
return True
|
|
||||||
else:
|
|
||||||
return False
|
|
||||||
|
|
||||||
|
|
||||||
# END MERGE SLOT 1
|
# END MERGE SLOT 1
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user