Skip to main content

pss_verify

Function pss_verify 

Source
pub fn pss_verify<H: Hasher>(
    pk: &RsaPublicKey,
    m_hash: &[u8],
    s_len: usize,
    sig: &[u8],
) -> bool
Expand description

RSASSA-PSS verify of a precomputed digest (RFC 8017 §8.1.2).

Returns true iff sig is a valid PSS signature of m_hash under pk with the given s_len. The caller must supply the same hash H and the same salt length the signer used (both are protocol parameters and are typically negotiated out-of-band or fixed by the signature algorithm OID).