X-Git-Url: http://wagner.pp.ru/gitweb/?a=blobdiff_plain;ds=sidebyside;f=ctypescrypto%2Fmac.py;fp=ctypescrypto%2Fmac.py;h=0a96cb063436175ef24ba89106aacf5626aa9174;hb=287e8a5b1d7f5a8129619f733adbfc8b2de3e4c7;hp=7b9381e52b90dd4361737e793cf7d1a5d004d62a;hpb=954b6dc9e3312f8d8b49f20f8466e6d2a8342f35;p=oss%2Fctypescrypto.git diff --git a/ctypescrypto/mac.py b/ctypescrypto/mac.py index 7b9381e..0a96cb0 100644 --- a/ctypescrypto/mac.py +++ b/ctypescrypto/mac.py @@ -67,8 +67,8 @@ class MAC(Digest): for (name,val) in kwargs.items(): 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() + self.digest_size = self.digest_type.digest_size + self.block_size = self.digest_type.block_size def digest(self,data=None): """ Method digest is redefined to return keyed MAC value instead of