mirror of
https://github.com/Legrandin/pycryptodome.git
synced 2025-12-08 05:19:46 +00:00
Make code base suitable for Python 2 and 3 - stop using 2to3
This commit is contained in:
parent
b20c1ea849
commit
cd7f0128b6
52 changed files with 259 additions and 235 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue