Skip to content

Initial implementation of ChaCha20Poly1305 AEAD for wolfProvider #183

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ColtonWilley
Copy link
Contributor

No description provided.

ok = 0;
}
if (ok) {
// cache user key
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't use this comment style.
Old compilers won't accept it.

}

if (ok) {
ret = wc_ChaCha20Poly1305_UpdateAad(&ctx->ChaChaPoly_Aead, (const byte*)ctx->tls_aad, (word32)ctx->tlsAadLen);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

80 characters per line

/**
* Authenticated Encryption with Associated Data structure.
*/
typedef struct wp_CP_AeadCtx {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How much is in common with wp_aes_aead.c?
If a lot then consider merging and renaming it wp_aead.c.

@ColtonWilley ColtonWilley marked this pull request as draft July 23, 2025 20:53
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.

2 participants