Add type annotations
Signed-off-by: Tom Cosgrove <tom.cosgrove@arm.com>
This commit is contained in:
parent
c240600f24
commit
21d459d26a
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue