[−][src]Function keybear_core::crypto::decrypt
pub fn decrypt<T>(
shared_secret_key: &SharedSecret,
cipher_bytes: &[u8]
) -> Result<T> where
T: DeserializeOwned,
Decrypt a chacha20poly1305 encoded JSON string into an object.
pub fn decrypt<T>(
shared_secret_key: &SharedSecret,
cipher_bytes: &[u8]
) -> Result<T> where
T: DeserializeOwned,
Decrypt a chacha20poly1305 encoded JSON string into an object.