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

Hashed strings not 2.0 compliant #48

Open
JohnLCaron opened this issue Apr 9, 2024 · 0 comments
Open

Hashed strings not 2.0 compliant #48

JohnLCaron opened this issue Apr 9, 2024 · 0 comments

Comments

@JohnLCaron
Copy link
Owner

Hashing strings (5.1.4)

"When an input to the function H is a string s, it is encoded as a byte array b(s, len(s)) using UTF-8
encoding. Here, len(s) is the length of the UTF-8 encoding of the string s in bytes."

But we are just using String.encodeToByteArray().

Works as long as we are consistent, but will break vs conformant implementation.

Affects

ContestData.encryptContestData()
KeyCeremonyTrustee.shareEncryption()
AddEncryptedBallot.closeChain()

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