base32,base64: disallow non-canonical encodings
commit8c735f65857ea17cdc0218b3fa3223769c3d8b9c
authorPádraig Brady <P@draigBrady.com>
Fri, 27 Oct 2023 12:24:04 +0000 (27 13:24 +0100)
committerPádraig Brady <P@draigBrady.com>
Sat, 28 Oct 2023 12:13:34 +0000 (28 13:13 +0100)
tree51102c8f5110a55bc114066d395ec453e71b6c46
parent60bd7bad9d2473d2bd0462a1cbe05144c35ad557
base32,base64: disallow non-canonical encodings

This will make decoding more resilient to corruption
whether due to transmission errors or nefarious adjustment.
See https://eprint.iacr.org/2022/361.pdf

* gnulib: Update to commit 3f463202bd enforcing canonical encoding.
* tests/basenc/base64.pl: Add test cases, and adjust existing cases.
* NEWS: Mention the change in behavior.
NEWS
gnulib
tests/basenc/base64.pl