Skip to main content

unprotect_cache_bytes

Function unprotect_cache_bytes 

Source
pub fn unprotect_cache_bytes(
    cache_bytes: Vec<u8>,
    encryption_enabled: bool,
) -> Result<Vec<u8>>
Expand description

Returns plaintext encoded cache bytes. Encrypted files require both an enabled configuration and the environment-only key; authentication failures intentionally do not distinguish a wrong key from modified ciphertext.