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

Can a context that does not implement a separate XOF struct absorb and squeeze at the same time? #53

Open
stackinspector opened this issue Apr 10, 2023 · 1 comment

Comments

@stackinspector
Copy link

Some contexts implement separate XOF structs and provide IntoXof to convert to XOF structs, while others implement both Hasher and Xof traits directly. can the latter absorb and squeeze at the same time? Does the Keccak structure theoretically allow this?

@burdges
Copy link
Contributor

burdges commented Apr 10, 2023

See https://docs.rs/merlin/latest/merlin/

Also, you can obviously clone a hasher state whenever it'd be safe to rehash exactly the same data, and then have those two hashers diverge.

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

2 participants