Skip to content

Conversation

@nmathewson
Copy link
Contributor

For the base64 case, this MR adds proptests to ensure that base64 and base64ct accept the same inputs when decoding, and produce the same outputs when decoding them.

For the base32 case, that property isn't actually true. Instead, the proptest makes sure that whenever base32 and base32ct both accept an input when decoding, they produce the same output.

Based on discussion at #2084.

For the base64 case, this MR adds proptests to ensure that base64
and base64ct accept the same inputs when decoding, and produce the
same outputs when decoding them.

For the base32 case, that property isn't actually true.  Instead,
the proptest makes sure that whenever base32 and base32ct both
accept an input when decoding, they produce the same output.
@nmathewson nmathewson force-pushed the proptest_decode_equivalence branch from dd0bea8 to 4698278 Compare November 6, 2025 12:45
@tarcieri tarcieri merged commit a152ff1 into RustCrypto:master Nov 6, 2025
60 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants