]> www.wagner.pp.ru Git - oss/ctypescrypto.git/blobdiff - ctypescrypto/mac.py
Fixed incompatibility with OpenSSL 1.1-pre for digest, cipher and MAC modules. Change...
[oss/ctypescrypto.git] / ctypescrypto / mac.py
index 0a96cb063436175ef24ba89106aacf5626aa9174..370eeb5c09247deda3b22d541621e7277807a7f8 100644 (file)
@@ -56,7 +56,7 @@ class MAC(Digest):
         if self.key is None:
             raise DigestError("EVP_PKEY_new_mac_key")
         pctx=c_void_p()
-        self.ctx = libcrypto.EVP_MD_CTX_create()
+        self.ctx = self.newctx()
         if self.ctx == 0:
             raise DigestError("Unable to create digest context")
         if libcrypto.EVP_DigestSignInit(self.ctx,pointer(pctx),d,None,self.key) <= 0: