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

Don't continually re-create the cipher object in bounce.rs #8

Closed
GWBasic opened this issue Nov 19, 2020 · 1 comment
Closed

Don't continually re-create the cipher object in bounce.rs #8

GWBasic opened this issue Nov 19, 2020 · 1 comment

Comments

@GWBasic
Copy link
Owner

GWBasic commented Nov 19, 2020

The cipher object can not live between calls to await.

See if there is a way to not have to continually recreate it. Perhaps it can be placed inside an Arc?

@GWBasic
Copy link
Owner Author

GWBasic commented Nov 19, 2020

This is not possible, as the nonce is set when the cipher is created, and the nonce should very with each process

@GWBasic GWBasic closed this as completed Nov 19, 2020
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