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

refactor: remove Enclave NONCE_SIZE generic #13

Merged
merged 2 commits into from
Dec 1, 2023

Conversation

mikesposito
Copy link
Owner

Remove previously introduced generic. This is being removed because the ChaCha20 algorithm only supports 8-byte nonces.

I'll introduce in a separate PR an implementation of XChaCha20, which uses 12-byte nonces (4 more bytes are taken from the counter - indeed, XChaCha20 can decrypt smaller amounts of data compared to ChaCha20).

@mikesposito mikesposito merged commit e8d22f8 into main Dec 1, 2023
3 checks passed
@mikesposito mikesposito deleted the refactor/remove-encalve-generic branch December 1, 2023 13:13
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

Successfully merging this pull request may close these issues.

1 participant