diff options
| author | J08nY | 2021-04-11 14:16:57 +0200 |
|---|---|---|
| committer | J08nY | 2021-04-11 14:16:57 +0200 |
| commit | 942c0fb9d6fcbff7c91c553211cc81c7e0939e4e (patch) | |
| tree | 1df80da6030019ef2a7490d2b2050a7d4b9a83ec /pyecsca/ec/key_generation.py | |
| parent | a2e01e037fcde3e63571633e94156e324a4f2299 (diff) | |
| download | pyecsca-942c0fb9d6fcbff7c91c553211cc81c7e0939e4e.tar.gz pyecsca-942c0fb9d6fcbff7c91c553211cc81c7e0939e4e.tar.zst pyecsca-942c0fb9d6fcbff7c91c553211cc81c7e0939e4e.zip | |
Diffstat (limited to 'pyecsca/ec/key_generation.py')
| -rw-r--r-- | pyecsca/ec/key_generation.py | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/pyecsca/ec/key_generation.py b/pyecsca/ec/key_generation.py index a08c767..c379a81 100644 --- a/pyecsca/ec/key_generation.py +++ b/pyecsca/ec/key_generation.py @@ -1,6 +1,4 @@ -""" -This module provides a key generator for elliptic curve keypairs. -""" +"""This module provides a key generator for elliptic curve keypairs.""" from typing import Tuple from public import public @@ -28,7 +26,13 @@ class KeygenAction(ResultAction): @public class KeyGeneration(object): - """Key generator.""" + """ + Key generator. + + :param mult: The scalar multiplier to use during key generation. + :param params: The domain parameters over which to generate the keypair. + :param affine: Whether to transform the public key point to the affine form during key generation. + """ mult: ScalarMultiplier params: DomainParameters @@ -37,11 +41,6 @@ class KeyGeneration(object): def __init__( self, mult: ScalarMultiplier, params: DomainParameters, affine: bool = False ): - """ - :param mult: The scalar multiplier to use during key generation. - :param params: The domain parameters over which to generate the keypair. - :param affine: Whether to transform the public key point to the affine form during key generation. - """ self.mult = mult self.params = params self.mult.init(self.params, self.params.generator) |
