- Timestamp:
- 10/25/16 18:31:57 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/bletchley/CBC/__init__.py
r76 r119 151 151 if pad_length > 1: 152 152 # XXX: If this test case fails, we should try instead 153 # length ing the pad by one byte with all 256 values (as is153 # lengthening the pad by one byte with all 256 values (as is 154 154 # done in the 1-byte pad case). 155 155 # … … 208 208 """ 209 209 210 # XXX: If the second-to-last byte of a block happens to be 0x02 211 # then changing the final byte to either 0x01 or 0x02 would 212 # cause no error to be generated by the oracle. Need to 213 # handle that corner case. This doesn't occur on any other 214 # offset, since we'll have already set the previously 215 # decrypted bytes to a specific pad value, eliminating the 216 # ambiguity. 217 210 218 if(len(block)!=self.block_size): 211 219 raise InvalidBlockError … … 224 232 225 233 # XXX: catch any signal exceptions, such as ^C, and communicate 226 # this back to the rest of the script so it can end immediately 234 # this back to the rest of the script so it can end immediately 227 235 for x in range(0, 1+self.retries): 228 236 # Each thread spawned searches a subset of the next byte's
Note: See TracChangeset
for help on using the changeset viewer.