Make code base suitable for Python 2 and 3 - stop using 2to3

This commit is contained in:
Helder Eijs 2018-11-04 11:31:40 +01:00
parent b20c1ea849
commit cd7f0128b6
52 changed files with 259 additions and 235 deletions

View file

@ -22,9 +22,7 @@
# SOFTWARE.
# ===================================================================
from Crypto.Util.py3compat import *
def new(nbits, prefix=b(""), suffix=b(""), initial_value=1, little_endian=False, allow_wraparound=False):
def new(nbits, prefix=b"", suffix=b"", initial_value=1, little_endian=False, allow_wraparound=False):
"""Create a stateful counter block function suitable for CTR encryption modes.
Each call to the function returns the next counter block.