[][src]Function ece::decrypt

pub fn decrypt(local_priv: &[u8], auth: &[u8], data: &[u8]) -> Result<Vec<u8>>

Decrypt a block using default AES128GCM encoding.

param local_priv &str - The locally generated Private key as a raw, hex encoded string param auth &str - The locally generated auth token (this value was shared with the encryptor) param data &u8 - The encrypted data block