Skip to content

Commit

Permalink
Squashed commit of the following:
Browse files Browse the repository at this point in the history
commit 1cd7e30
Author: programmingAthlete <luca.bonamino@hotmail.com>
Date:   Sat Mar 23 18:33:26 2024 +0100

    version

commit 5f18193
Author: programmingAthlete <luca.bonamino@hotmail.com>
Date:   Sat Mar 23 18:32:37 2024 +0100

    function hardcoded
  • Loading branch information
programmingAthlete committed Mar 23, 2024
1 parent efa65bf commit ecbfdbd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from setuptools import setup, find_packages

__version__ = "1.6.0"
__version__ = "1.6.1"

with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
Expand Down
2 changes: 1 addition & 1 deletion src/crypto_pkg/attacks/stream_ciphers/geffe_cipher.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def try_guess_for_1(self, g, guess):

def look_for_correlation(self, thresholds: Union[List[Tuple[ThresholdsOperator, float]], None]):

g = Geffe(self.n, self.all_taps, [1, 1, 0, 1, 0, 0, 0, 1])
g = Geffe(self.n, self.all_taps, self.f)
d = [self.try_guess(g=g, threshold=thresholds, guess=i) for i in range(self.max_iter)]
key0 = [item[0][0] for item in d if item[0] is not None]
key2 = [item[2][0] for item in d if item[2] is not None]
Expand Down

0 comments on commit ecbfdbd

Please sign in to comment.