Fix input parameter alignment in P256K1 test cases

Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
This commit is contained in:
Gabor Mezei 2023-05-05 16:32:28 +02:00
parent 908f40014c
commit 9bf1aaf385
No known key found for this signature in database
GPG key ID: F072ACA227ACD71D

View file

@ -672,8 +672,7 @@ class EcpP256K1Raw(bignum_common.ModOperationCommon,
@property @property
def arg_a(self) -> str: def arg_a(self) -> str:
hex_digits = bignum_common.hex_digits_for_limb(448 // self.bits_in_limb, self.bits_in_limb) return super().format_arg('{:x}'.format(self.int_a)).zfill(2 * self.hex_digits)
return super().format_arg('{:x}'.format(self.int_a)).zfill(hex_digits)
def result(self) -> List[str]: def result(self) -> List[str]:
result = self.int_a % self.int_n result = self.int_a % self.int_n