Skip to main content

oaep_decrypt

Function oaep_decrypt 

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

OAEP decrypt a ciphertext using SHA-256 for both the label hash and MGF1 (convenience wrapper over oaep_decrypt_with).

Returns None if decryption or padding verification fails.