// XOR a vector with a key
XOR a vector with a key
XOR a vector with a key
fn key_xor(v1: &[u8], key: u8) -> Vec<u8> {
	v1
		.iter()
		.map(|b1| b1^key)
		.collect()
}
fn key_xor ( v1 : & [ u8 ] , key : u8 ) -> Vec < u8 > { v1 . iter ( ) . map ( | b1 | b1 ^ key ) . collect ( ) }
XOR a vector with a key
XOR a vector with a key
v1
&[u8]
key
u8