Skip to content

Commit

Permalink
improve linting
Browse files Browse the repository at this point in the history
  • Loading branch information
cforeman-cqc committed Dec 24, 2023
1 parent 643831e commit d3813b4
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions cryptomite/circulant.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from math import floor, log2
from typing import cast

from cryptomite.utils import BitsT, conv, log_2, closest_prime
from cryptomite.utils import BitsT, closest_prime, conv, log_2

__all__ = ['Circulant']

Expand Down Expand Up @@ -71,9 +71,10 @@ def from_params(
given the initial lengths and min-entropies of the input sources
and generate the associated extractor.
The input_length2 must be prime, else the code will chose a valid
input_length2 choice and adjust the other parameters accordingly.
The min entropy inputs are a lower bound on the :term:`min-entropy`
The input_length2 must be prime, else the code will chose a
valid input_length2 choice and adjust the other parameters
accordingly.
The min_entropy inputs are a lower bound on the :term:`min-entropy`
of the related input string.
Parameters
Expand Down Expand Up @@ -114,8 +115,8 @@ def from_params(
- input_length + 8 * log2_error
+ 8 - 4 * log2(3)))
if output_length <= 0:
raise Exception('Cannot extract with these parameters. '
'''Increase min_entropy1 and/or min_entropy2
raise Exception('''Cannot extract with these parameters.
Increase min_entropy1 and/or min_entropy2
and/or log2_error.''')
if verbose:
print('Min entropy1: ', min_entropy1,
Expand Down

0 comments on commit d3813b4

Please sign in to comment.