Changeset 69
- Timestamp:
- 03/12/14 13:45:28 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/bletchley/CBC/__init__.py
r66 r69 248 248 if x < self.retries: 249 249 self.log_message("Value of a byte could not be determined. Retrying...") 250 # XXX: Instead of adding a new random block to the 251 # beginning every time, would be better to just keep 252 # randomizing the same block before the original 253 # prior_prefix. 250 254 prior_prefix = bytes([random.getrandbits(8) for i in range(self.block_size)]) + prior_prefix 251 255 else:
Note: See TracChangeset
for help on using the changeset viewer.