- Timestamp:
- 10/17/12 23:08:26 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/bletchley/buffertools.py
r1 r7 112 112 return (buf[i:i + block_size] for i in xrange(0, len(buf), block_size)) 113 113 114 def pkcs 5PadBuffer(buf, block_size):114 def pkcs7PadBuffer(buf, block_size): 115 115 ''' 116 Pads the end of a buffer using PKCS#5 padding.116 Pads the end of a buffer using PKCS#5/PKCS#7 padding. 117 117 ''' 118 118 padding = block_size - (len(buf) % block_size)
Note: See TracChangeset
for help on using the changeset viewer.