Changeset 117


Ignore:
Timestamp:
10/17/16 19:00:20 (8 years ago)
Author:
tim
Message:

.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/bletchley/buffertools.py

    r100 r117  
    135135
    136136    length = decrypted[-1]
    137     if length > block_size:
     137    if (length == 0) or (length > block_size):
    138138        if log_file:
    139139            log_file.write("Can't strip PKCS7 pad.  Final byte length (%d) too large.\n" % length)
Note: See TracChangeset for help on using the changeset viewer.