def verifyMac(self, data, checkMac):
try:
self.verifier(
checkMac,
data,
# PSS(
# mgf=MGF1(hashes.SHA256()),
# salt_length=PSS.MAX_LENGTH
# ),
PKCS1v15(),
hashes.SHA256()
)
return True
except InvalidSignature:
return False
评论列表
文章目录