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

Padding algorithm not documented correctly #3

Open
chm-diederichs opened this issue Feb 10, 2020 · 0 comments
Open

Padding algorithm not documented correctly #3

chm-diederichs opened this issue Feb 10, 2020 · 0 comments

Comments

@chm-diederichs
Copy link
Contributor

sodium_pad does not pad with random data, but rather according to Iso 7816-4 algorithm

christianbundy added a commit to christianbundy/docs-2 that referenced this issue Sep 8, 2020
The documentation says that sodium_pad uses random data, but it actually
follows a simple algorithm where the first padded byte is `0x80` and the
rest are just `0x00`.

This replaces the incorrect documentation with a simple description of
the correct algorithm.

Reported-By: Christophe Diederichs <chris.d.itunes@gmail.com>
Link: sodium-friends#3
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

1 participant