ctypes.c_size_t in argtypes of EVP_DigestUpdate and HMAC

This commit is contained in:
Lee Miller 2022-07-16 19:26:01 +03:00
parent 99fda8c84f
commit d751fb9081
Signed by untrusted user: lee.miller
GPG Key ID: 4F97A5EA88F4AB63

View File

@ -392,7 +392,7 @@ class _OpenSSL(object):
self.EVP_DigestUpdate = self._lib.EVP_DigestUpdate
self.EVP_DigestUpdate.restype = ctypes.c_int
self.EVP_DigestUpdate.argtypes = [ctypes.c_void_p,
ctypes.c_void_p, ctypes.c_int]
ctypes.c_void_p, ctypes.c_size_t]
self.EVP_DigestFinal = self._lib.EVP_DigestFinal
self.EVP_DigestFinal.restype = ctypes.c_int
@ -472,7 +472,7 @@ class _OpenSSL(object):
self.HMAC = self._lib.HMAC
self.HMAC.restype = ctypes.c_void_p
self.HMAC.argtypes = [ctypes.c_void_p, ctypes.c_void_p, ctypes.c_int,
ctypes.c_void_p, ctypes.c_int,
ctypes.c_void_p, ctypes.c_size_t,
ctypes.c_void_p, ctypes.c_void_p]
try: