Skip to main content

oaep_decrypt_with

Function oaep_decrypt_with 

Source
pub fn oaep_decrypt_with<H: Hasher, MGF: Hasher>(
    sk: &RsaSecretKey,
    ct: &[u8],
    label: &[u8],
) -> Option<Vec<u8>>
Expand description

OAEP decrypt a ciphertext, generic over the label hash H and the MGF1 hash MGF (RFC 8017 §7.1.2).

Returns None if decryption or padding verification fails.