Work on challenge 17.

This commit is contained in:
2022-07-05 11:39:35 -04:00
parent d1be95cbe1
commit 08a8cad6f2
3 changed files with 46 additions and 23 deletions

View File

@@ -101,7 +101,7 @@ impl Bytes {
}
}
pub fn has_valid_pkcs7(&mut self, block_size: usize) -> bool {
pub fn has_valid_pkcs7(&self, block_size: usize) -> bool {
if self.len() > 0 && self.len() % block_size != 0 {
return false;
}