mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-31 10:20:45 +00:00
Make pylint happy
Signed-off-by: Janos Follath <janos.follath@arm.com>
This commit is contained in:
parent
cf0e86c9b8
commit
43d3de4977
@ -770,11 +770,7 @@ class BignumCoreExpMod(BignumCoreTarget, bignum_common.ModOperationCommon):
|
||||
def is_valid(self) -> bool:
|
||||
# The base needs to be canonical, but the exponent can be larger than
|
||||
# the modulus (see for example exponent blinding)
|
||||
if self.int_a < self.int_n:
|
||||
return True
|
||||
else:
|
||||
return False
|
||||
|
||||
return bool(self.int_a < self.int_n)
|
||||
|
||||
# END MERGE SLOT 1
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user