Ignore:
Timestamp:
11/25/12 18:44:45 (12 years ago)
Author:
tmorgan
Message:

rewrote POA library to be more stateful, and more frugal with numbers of requests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/bletchley/buffertools.py

    r7 r15  
    117117        '''
    118118        padding = block_size - (len(buf) % block_size)
    119         return buf + (chr(padding) * padding)
     119        return buf + pkcs7Pad(padding)
     120
     121def pkcs7Pad(length):
     122        return chr(length) * length
Note: See TracChangeset for help on using the changeset viewer.