diff options
Diffstat (limited to 'passlib/utils/des.py')
-rw-r--r-- | passlib/utils/des.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/passlib/utils/des.py b/passlib/utils/des.py index f21de4d..0422197 100644 --- a/passlib/utils/des.py +++ b/passlib/utils/des.py @@ -622,11 +622,11 @@ def expand_des_key(key): else: raise exc.ExpectedTypeError(key, "bytes or int", "key") key = _unpack56(key) - # NOTE: this function would insert correctly-valued parity bits in each key, + # NOTE: the following would insert correctly-valued parity bits in each key, # but the parity bit would just be ignored in des_encrypt_block(), # so not bothering to use it. ##return join_byte_values(expand_7bit((key >> shift) & 0x7f) - # for shift in _EXPAND_ITER) + ## for shift in _EXPAND_ITER) return join_byte_values(((key>>shift) & 0x7f)<<1 for shift in _EXPAND_ITER) def shrink_des_key(key): |