feat: gfmul and aes gcm working
This commit is contained in:
parent
8db0bbaa63
commit
e33a26adab
4 changed files with 137 additions and 6 deletions
|
|
@ -96,6 +96,10 @@ impl ByteArray {
|
|||
}
|
||||
true
|
||||
}
|
||||
|
||||
pub fn reverse_bits_in_bytevec(&mut self) {
|
||||
self.0 = self.0.iter_mut().map(|byte| byte.reverse_bits()).collect();
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue