File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -276,7 +276,7 @@ impl RawPadding for AnsiX923 {
276
276
fn raw_pad ( block : & mut [ u8 ] , pos : usize ) {
277
277
// TODO: use bounds to check it at compile time
278
278
if block. len ( ) > 255 {
279
- panic ! ( "block size is too big for PKCS#7 " ) ;
279
+ panic ! ( "block size is too big for ANSI X9.23 " ) ;
280
280
}
281
281
if pos >= block. len ( ) {
282
282
panic ! ( "`pos` is bigger or equal to block size" ) ;
@@ -290,7 +290,7 @@ impl RawPadding for AnsiX923 {
290
290
fn raw_unpad ( block : & [ u8 ] ) -> Result < & [ u8 ] , UnpadError > {
291
291
// TODO: use bounds to check it at compile time
292
292
if block. len ( ) > 255 {
293
- panic ! ( "block size is too big for PKCS#7 " ) ;
293
+ panic ! ( "block size is too big for ANSI X9.23 " ) ;
294
294
}
295
295
let bs = block. len ( ) ;
296
296
let n = block[ bs - 1 ] as usize ;
You can’t perform that action at this time.
0 commit comments