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

Generating with input of multipler of 32 bytes causing .verify to fail with padding error.. #23

Closed
fairbairn opened this issue Jun 26, 2018 · 6 comments

Comments

@fairbairn
Copy link

We found this issue when encoding a string that happened to be exactly 160 bytes in length.

The token generates, but upon .verify, it fails with a padding error.

Our guess is it would fail on any coded input that happened to have a length that is a multipler of 32 bytes.

@alex
Copy link

alex commented Jun 26, 2018

Which implementation are you describing? This repo covers the specification itself.

@fairbairn
Copy link
Author

fairbairn commented Jun 26, 2018 via email

@fairbairn
Copy link
Author

fairbairn commented Jun 26, 2018 via email

@alex
Copy link

alex commented Jun 26, 2018

This sounds like a bug with the Fernetex library, and you should file it in their bug tracker, not a bug with the spec.

@fairbairn
Copy link
Author

fairbairn commented Jun 26, 2018 via email

@kennyp
Copy link
Member

kennyp commented Dec 9, 2021

I believe this was fixed in kennyp/fernetex#8. Thanks for reaching out over there!

@kennyp kennyp closed this as completed Dec 9, 2021
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

No branches or pull requests

3 participants