-
-
Notifications
You must be signed in to change notification settings - Fork 49
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
Can't use shake256 as Keccak without casting #55
Can't use shake256 as Keccak without casting #55
Comments
yeah also you should probably be using:
|
For shakes, dkLen is usually needed. |
I was copying some Go code (privacy pass) which it has to match (which it
did)
I did stumble upon the PRG class (after the fact) but I wasn't sure it
would produce the same result.
Will check it out.
For some reason the default dkLen seemed to work.
|
Ok, so I can't use keccakprg (for this particular purpose anyway) because the KeccakPRG class overrides the finish() method to be a noop, so while I could tinker with the suffix/outputLen post construction(capacity=510) (they are public members) they wouldn't be used anyway. Was recreating this functionality here: |
Yeah, if you're trying to copy something, makes sense to not use prg. BTW, keccakprg is official PRG from Keccak team. |
// https://keccak.team/files/CSF-0.1.pdf
Yeah! :) I'm starting to realize the old version of PP was very prototypical with very strange nesting of base64 encoded json structures. |
Also a bit strange requiring empty object for the options
The text was updated successfully, but these errors were encountered: