bitwarden_crypto::rsa

Function encrypt_rsa2048_oaep_sha1

Source
pub(crate) fn encrypt_rsa2048_oaep_sha1(
    public_key: &RsaPublicKey,
    data: &[u8],
) -> Result<Vec<u8>, CryptoError>
Expand description

Encrypt data using RSA-OAEP-SHA1 with a 2048 bit key