refactor: fix broken gfmil algo

This commit is contained in:
0xalivecow 2024-10-30 17:57:24 +01:00
parent ccf0b03ec0
commit 2e22bd5789
No known key found for this signature in database
3 changed files with 73 additions and 9 deletions

View file

@ -92,6 +92,10 @@ impl ByteArray {
(self.0.first().unwrap() & 1) == 1
}
pub fn msb_is_one(&self) -> bool {
(self.0.last().unwrap() & 1) == 1
}
pub fn is_empty(&self) -> bool {
for i in self.0.iter() {
if *i != 0 {