diff options
-rw-r--r-- | cryptography/hazmat/backends/openssl/backend.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cryptography/hazmat/backends/openssl/backend.py b/cryptography/hazmat/backends/openssl/backend.py index d7110f81..7b0e50d3 100644 --- a/cryptography/hazmat/backends/openssl/backend.py +++ b/cryptography/hazmat/backends/openssl/backend.py @@ -862,7 +862,7 @@ class _AESCTRCipherContext(object): ) assert res == 0 self._ecount = self._backend._ffi.new("char[]", 16) - self._nonce = self._backend._ffi.new("char[]", mode.nonce) + self._nonce = self._backend._ffi.new("char[16]", mode.nonce) self._num = self._backend._ffi.new("unsigned int *", 0) def update(self, data): |