Changeset 48


Ignore:
Timestamp:
05/31/13 18:45:02 (11 years ago)
Author:
tmorgan
Message:

fixed foolish hard-coded block size

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/bletchley/CBC/__init__.py

    r43 r48  
    165165            #     bytes to be used or to turn off the behavior.
    166166            prior = bytearray(prior)
    167             for q in range(-16,-1):
     167            for q in range(0-self.block_size,-1):
    168168                prior[q] = prior[q]^(pad_length^32) # space
    169169
Note: See TracChangeset for help on using the changeset viewer.