aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2016-09-22 12:16:12 -0400
committerPaul Kehrer <paul.l.kehrer@gmail.com>2016-09-22 11:16:12 -0500
commit39374aaea68616fa80a9999fce8b1a3cdb8da20d (patch)
treedfd8240950a6955e986a5251535df368e160e58f /src
parent8b8d51b752729f7237bb51274ccf158cbb4cfce0 (diff)
downloadcryptography-39374aaea68616fa80a9999fce8b1a3cdb8da20d.tar.gz
cryptography-39374aaea68616fa80a9999fce8b1a3cdb8da20d.tar.bz2
cryptography-39374aaea68616fa80a9999fce8b1a3cdb8da20d.zip
Resolved some more CFFI warnings; these are also unsigned (#3163)
Diffstat (limited to 'src')
-rw-r--r--src/cryptography/hazmat/backends/openssl/ciphers.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cryptography/hazmat/backends/openssl/ciphers.py b/src/cryptography/hazmat/backends/openssl/ciphers.py
index d0d82ce2..bd5dfb31 100644
--- a/src/cryptography/hazmat/backends/openssl/ciphers.py
+++ b/src/cryptography/hazmat/backends/openssl/ciphers.py
@@ -184,8 +184,8 @@ class _AESCTRCipherContext(object):
cipher.key, len(cipher.key) * 8, self._key
)
self._backend.openssl_assert(res == 0)
- self._ecount = self._backend._ffi.new("char[]", 16)
- self._nonce = self._backend._ffi.new("char[16]", mode.nonce)
+ self._ecount = self._backend._ffi.new("unsigned char[]", 16)
+ self._nonce = self._backend._ffi.new("unsigned char[16]", mode.nonce)
self._num = self._backend._ffi.new("unsigned int *", 0)
def update(self, data):