X-Git-Url: https://www.wagner.pp.ru/gitweb/?a=blobdiff_plain;f=ctypescrypto%2Fmac.py;h=370eeb5c09247deda3b22d541621e7277807a7f8;hb=8a2a5ca1f9fc0036d28807d2a9b8a130e560d85b;hp=0a96cb063436175ef24ba89106aacf5626aa9174;hpb=2e04d726701ce9ad739b4b115d6d731802b0c570;p=oss%2Fctypescrypto.git diff --git a/ctypescrypto/mac.py b/ctypescrypto/mac.py index 0a96cb0..370eeb5 100644 --- a/ctypescrypto/mac.py +++ b/ctypescrypto/mac.py @@ -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: