Skip to main content

decrypt_with_key

Function decrypt_with_key 

Source
pub fn decrypt_with_key(
    hex_data: &str,
    key: &[u8; 32],
) -> Result<String, String>
Expand description

Decrypt a hex-encoded ChaCha20-Poly1305 ciphertext with a key. Mirrors maybe_decrypt_inner’s fast path: SIMD hex decode, no plaintext copy, and from_utf8_unchecked.