Function decrypt
Source pub fn decrypt<'k, Key, Payload>(key: Key, payload: Payload) -> Option<Vec<u8>>
Expand description
Decrypts the payload with AES256 GCM SIV.
Returns None if an error occurred.
ยงExample
let key = get_key();
let payload = get_encrypted_payload();
let encrypted = crypter::decrypt(&key, payload);