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

Is it possible to reuse the same Hash instance? #1

Closed
limonadev opened this issue Dec 8, 2020 · 1 comment
Closed

Is it possible to reuse the same Hash instance? #1

limonadev opened this issue Dec 8, 2020 · 1 comment

Comments

@limonadev
Copy link

limonadev commented Dec 8, 2020

Creating a single Hash instance (an Hmac for example) with its key is pretty straightforward, but I am not sure if it's possible to reuse the same instance to call the update() method to hash different lists of bytes. Does it represent a security risk?

@litaoh
Copy link
Owner

litaoh commented Jul 4, 2021

The same instance executes the reset method before calling update

@litaoh litaoh closed this as completed Nov 20, 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

2 participants