mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-02-22 09:40:09 +00:00
Make pylint happy
Signed-off-by: Janos Follath <janos.follath@arm.com>
This commit is contained in:
parent
133f4e427b
commit
88e3177fcc
@ -76,14 +76,14 @@ class BignumCoreCTLookup(BignumCoreTarget, metaclass=ABCMeta):
|
|||||||
test_name = "Constant time MPI table lookup"
|
test_name = "Constant time MPI table lookup"
|
||||||
|
|
||||||
bitsizes = [
|
bitsizes = [
|
||||||
(32, "One limb"),
|
(32, "One limb"),
|
||||||
(192, "Smallest curve sized"),
|
(192, "Smallest curve sized"),
|
||||||
(512, "Largest curve sized"),
|
(512, "Largest curve sized"),
|
||||||
(2048, "Small FF/RSA sized"),
|
(2048, "Small FF/RSA sized"),
|
||||||
(4096, "Large FF/RSA sized"),
|
(4096, "Large FF/RSA sized"),
|
||||||
]
|
]
|
||||||
|
|
||||||
window_sizes = [ 0, 1, 2, 3, 4, 5, 6 ]
|
window_sizes = [0, 1, 2, 3, 4, 5, 6]
|
||||||
|
|
||||||
def __init__(self,
|
def __init__(self,
|
||||||
bitsize: int, descr: str, window_size: int) -> None:
|
bitsize: int, descr: str, window_size: int) -> None:
|
||||||
@ -96,10 +96,10 @@ class BignumCoreCTLookup(BignumCoreTarget, metaclass=ABCMeta):
|
|||||||
|
|
||||||
def description(self) -> str:
|
def description(self) -> str:
|
||||||
return '{} - {} MPI with {} bit window'.format(
|
return '{} - {} MPI with {} bit window'.format(
|
||||||
BignumCoreCTLookup.test_name,
|
BignumCoreCTLookup.test_name,
|
||||||
self.bitsize_description,
|
self.bitsize_description,
|
||||||
self.window_size
|
self.window_size
|
||||||
)
|
)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def generate_function_tests(cls) -> Iterator[test_case.TestCase]:
|
def generate_function_tests(cls) -> Iterator[test_case.TestCase]:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user