X-Git-Url: http://wagner.pp.ru/gitweb/?a=blobdiff_plain;f=ctypescrypto%2Fmac.py;h=370eeb5c09247deda3b22d541621e7277807a7f8;hb=9394b769c7573617630484e7a932f6542068a8b6;hp=0a96cb063436175ef24ba89106aacf5626aa9174;hpb=287e8a5b1d7f5a8129619f733adbfc8b2de3e4c7;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: