mirror of
https://github.com/cryb-to/cryb-to.git
synced 2024-11-21 21:25:50 +00:00
Improve tests for sloppy padding in encoded input.
This commit is contained in:
parent
d017611d76
commit
9bf06c258c
1 changed files with 8 additions and 2 deletions
|
@ -171,8 +171,14 @@ static struct t_case t_cases[] = {
|
|||
T_ENCDEC("\0\0\0", "AAAAA===", "AAAA"),
|
||||
|
||||
/* sloppy padding */
|
||||
T_DECODE("f", "MY=", "Zg="),
|
||||
T_DECODE("f", "MY", "Zg"),
|
||||
T_DECODE_N(32, "MY=====", "f"),
|
||||
T_DECODE_N(32, "MY====", "f"),
|
||||
T_DECODE_N(32, "MY===", "f"),
|
||||
T_DECODE_N(32, "MY==", "f"),
|
||||
T_DECODE_N(32, "MY=", "f"),
|
||||
T_DECODE_N(32, "MY", "f"),
|
||||
T_DECODE_N(64, "Zg=", "f"),
|
||||
T_DECODE_N(64, "Zg", "f"),
|
||||
|
||||
/* whitespace */
|
||||
/* plain base32 base64 */
|
||||
|
|
Loading…
Reference in a new issue