diff options
author | Tom Cosgrove <tom.cosgrove@arm.com> | 2022-12-06 12:36:00 +0000 |
---|---|---|
committer | Tom Cosgrove <tom.cosgrove@arm.com> | 2022-12-06 12:36:00 +0000 |
commit | 21d459d26a4329dd32579551a38f93ba731c163f (patch) | |
tree | 7a1286d70a89d388a8bc3e8ee0cb431bdf7c9463 | |
parent | c240600f2490fb7fd01db78dfa8a0e2aec003633 (diff) | |
download | mbedtls-21d459d26a4329dd32579551a38f93ba731c163f.tar.gz |
Add type annotations
Signed-off-by: Tom Cosgrove <tom.cosgrove@arm.com>
-rw-r--r-- | scripts/mbedtls_dev/bignum_common.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/mbedtls_dev/bignum_common.py b/scripts/mbedtls_dev/bignum_common.py index 81bc28e19..3ff8b2f35 100644 --- a/scripts/mbedtls_dev/bignum_common.py +++ b/scripts/mbedtls_dev/bignum_common.py @@ -251,10 +251,10 @@ class ModOperationCommon(OperationCommon): # provides earlier/more robust input validation. self.int_n = hex_to_int(val_n) - def to_montgomery(self, val) -> int: + def to_montgomery(self, val: int) -> int: return (val * self.r) % self.int_n - def from_montgomery(self, val) -> int: + def from_montgomery(self, val: int) -> int: return (val * self.r_inv) % self.int_n @property |