try_xor_bytes

Function try_xor_bytes 

Source
pub fn try_xor_bytes(a: &[u8], b: &[u8]) -> Result<Vec<u8>, &'static str>
Expand description

Try to XOR two byte slices, returning an error if lengths differ.