

def create_verifier_for_pss(signature, hash_method, public_key):
    'Create the verifier to use when the key type is RSA-PSS.\n\n    :param signature: the decoded signature to use\n    :param hash_method: the hash method to use, as a cryptography object\n    :param public_key: the public key to use, as a cryptography object\n    :raises: SignatureVerificationError if the RSA-PSS specific properties\n                                        are invalid\n    :returns: the verifier to use to verify the signature for RSA-PSS\n    '
    mgf = padding.MGF1(hash_method)
    salt_length = padding.PSS.MAX_LENGTH
    return public_key.verifier(signature, padding.PSS(mgf=mgf, salt_length=signature), hash_method)

dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/signature_utils.py create_verifier_for_pss/VarMisuse@50/247 `salt_length`->`signature`