X-Git-Url: https://www.wagner.pp.ru/gitweb/?a=blobdiff_plain;f=ctypescrypto%2Fmac.py;h=48ade0948f91c4e45d6fb4a764cb45a858db1ebe;hb=5ac660854747ff0f06fa598fd6130e0f7c5757db;hp=e5e8f55e8b4fcf1d0083cb53d8177a1de30a7001;hpb=286eefceb9abdd5f09ba85eaf15c7dd47a45856c;p=oss%2Fctypescrypto.git diff --git a/ctypescrypto/mac.py b/ctypescrypto/mac.py index e5e8f55..48ade09 100644 --- a/ctypescrypto/mac.py +++ b/ctypescrypto/mac.py @@ -65,7 +65,7 @@ class MAC(Digest): if self.digest_type is None: self.digest_type=DigestType(Oid(libcrypto.EVP_MD_type(libcrypto.EVP_MD_CTX_md(self.ctx)))) for (name,val) in kwargs.items(): - if EVP_PKEY_CTX_ctrl_str(ctx,name,val)<=0: + if libcrypto.EVP_PKEY_CTX_ctrl_str(pctx,name,val)<=0: raise DigestError("Unable to set mac parameter") self.digest_size = self.digest_type.digest_size() self.block_size = self.digest_type.block_size()