diff options
Diffstat (limited to 'passlib/utils/_blowfish/unrolled.py')
-rw-r--r-- | passlib/utils/_blowfish/unrolled.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/passlib/utils/_blowfish/unrolled.py b/passlib/utils/_blowfish/unrolled.py index aa504ea..7ce0bcc 100644 --- a/passlib/utils/_blowfish/unrolled.py +++ b/passlib/utils/_blowfish/unrolled.py @@ -4,18 +4,18 @@ autogenerated by _gen_files.py currently this override the encipher() and expand() methods with optimized versions, and leaves the other base.py methods alone. """ -#================================================================= +#============================================================================= # imports -#================================================================= +#============================================================================= # pkg from passlib.utils._blowfish.base import BlowfishEngine as _BlowfishEngine # local __all__ = [ "BlowfishEngine", ] -#================================================================= +#============================================================================= # -#================================================================= +#============================================================================= class BlowfishEngine(_BlowfishEngine): def encipher(self, l, r): @@ -88,7 +88,7 @@ class BlowfishEngine(_BlowfishEngine): def expand(self, key_words): """unrolled version of blowfish key expansion""" - #assert len(key_words) >= 18, "size of key_words must be >= 18" + ##assert len(key_words) >= 18, "size of key_words must be >= 18" P, S = self.P, self.S S0, S1, S2, S3 = S @@ -762,10 +762,10 @@ class BlowfishEngine(_BlowfishEngine): box[j], box[j+1] = l, r = r ^ p17, l j += 2 - #================================================================= + #=================================================================== # eoc - #================================================================= + #=================================================================== -#================================================================= +#============================================================================= # eof -#================================================================= +#============================================================================= |