Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rust: base32; decode_len, add case for 0 #4317

Closed
wants to merge 1 commit into from

Conversation

Horki
Copy link
Contributor

@Horki Horki commented Dec 4, 2020

@edolstra Hi, added a small update,

  • same check as in encode_len

@zimbatm
Copy link
Member

zimbatm commented Dec 4, 2020

Doesn't decoded_len already return 0 for 0 * 5 / 8? It's different for encoded_len because of the padding.

@Horki
Copy link
Contributor Author

Horki commented Dec 4, 2020

@zimbatm yes you are right

@Horki Horki closed this Dec 4, 2020
@Horki Horki deleted the rs_base32_decode branch December 4, 2020 21:37
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.

None yet

2 participants