Changeset 7


Ignore:
Timestamp:
10/17/12 23:08:26 (12 years ago)
Author:
tmorgan
Message:

renamed function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/bletchley/buffertools.py

    r1 r7  
    112112        return (buf[i:i + block_size] for i in xrange(0, len(buf), block_size))
    113113
    114 def pkcs5PadBuffer(buf, block_size):
     114def pkcs7PadBuffer(buf, block_size):
    115115        '''
    116         Pads the end of a buffer using PKCS#5 padding.
     116        Pads the end of a buffer using PKCS#5/PKCS#7 padding.
    117117        '''
    118118        padding = block_size - (len(buf) % block_size)
Note: See TracChangeset for help on using the changeset viewer.