minor update

This commit is contained in:
Miroslav Stampar 2011-12-26 16:09:46 +00:00
parent 068ff92dc4
commit b604057e54

View File

@ -491,6 +491,7 @@ class des(_baseDes):
def __des_crypt(self, block, crypt_type): def __des_crypt(self, block, crypt_type):
"""Crypt the block of data through DES bit-manipulation""" """Crypt the block of data through DES bit-manipulation"""
block = self.__permutate(des.__ip, block) block = self.__permutate(des.__ip, block)
Bn = [0] * 32
self.L = block[:32] self.L = block[:32]
self.R = block[32:] self.R = block[32:]
@ -525,7 +526,6 @@ class des(_baseDes):
# Permutate B[1] to B[8] using the S-Boxes # Permutate B[1] to B[8] using the S-Boxes
j = 0 j = 0
Bn = [0] * 32
pos = 0 pos = 0
while j < 8: while j < 8:
# Work out the offsets # Work out the offsets