Function cfxkey::crypto::ecies::decrypt

source ·
pub fn decrypt(
    secret: &Secret,
    auth_data: &[u8],
    encrypted: &[u8]
) -> Result<Vec<u8>, Error>
Expand description

Decrypt a message with a secret key, checking HMAC for ciphertext and authenticated data validity.