1
0

style(p4, p9): fix style issue

This commit is contained in:
2025-09-02 12:05:26 +08:00
parent dd3d486094
commit 27e7137418
2 changed files with 5 additions and 4 deletions

View File

@@ -15,6 +15,7 @@ fn pkcs7_padding(data: &mut Vec<u8>, block_size: usize) {
data.extend(vec![padding_length as u8; padding_length]);
}
#[allow(dead_code)]
fn pkcs7_unpadding(input: &[u8]) -> Result<Vec<u8>> {
if input.is_empty() {
return Err(anyhow!("Input cannot be empty"));