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 regen the shared secret every message #30

Open
TheDiscordian opened this issue Dec 22, 2022 · 0 comments
Open

Don't regen the shared secret every message #30

TheDiscordian opened this issue Dec 22, 2022 · 0 comments
Labels
difficulty-2 Difficulty, 0 is the easiest, higher numbers are probably harder. enhancement New feature or request

Comments

@TheDiscordian
Copy link
Owner

Currently on encrypted message send/receive the shared secret is regenerated every single time. This is the heaviest crypto operation happening, and for specific users, produces the same result every time. It'd make more sense to cache these keys in memory upon generation, and grab them from there as needed.

@TheDiscordian TheDiscordian added enhancement New feature or request difficulty-2 Difficulty, 0 is the easiest, higher numbers are probably harder. labels Dec 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
difficulty-2 Difficulty, 0 is the easiest, higher numbers are probably harder. enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant