feat: gfmul and aes gcm working

This commit is contained in:
0xalivecow 2024-11-03 10:58:52 +01:00
parent 8db0bbaa63
commit e33a26adab
No known key found for this signature in database
4 changed files with 137 additions and 6 deletions

View file

@ -10,3 +10,9 @@ pub fn xor_bytes(vec1: &Vec<u8>, mut vec2: Vec<u8>) -> Result<Vec<u8>> {
Ok(vec2)
}
pub fn reverse_bits_in_bytevec(mut vec: Vec<u8>) -> Vec<u8> {
vec = vec.iter_mut().map(|byte| byte.reverse_bits()).collect();
vec
}