-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Compute padding manually to mimic python's binascii behavior (#290)
The JDK decoder behaves differently in particularly two corner cases: - It is more restrictive regarding superfluous padding. - It is more permissive regarding lack of padding. To counter this, we must manually compute the expected padding to cover for these two cases. This is very similar to CPython: python/cpython@1bf9cc5/Modules/binascii.c#L468-L473
- Loading branch information
1 parent
ada686b
commit fac1d5a
Showing
2 changed files
with
64 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters