Skip to content

Conversation

@npaun
Copy link
Contributor

@npaun npaun commented Oct 30, 2025

This PR implements wrappers for BoringSSL's EVP_AEAD interface which is used to access AEAD (authenticated encryption with associated data) modes like chacha20-poly1305 and aes-256-gcm. You can't use the EVP_CIPHER interface like you could in OpenSSL, you have to use EVP_AEAD. Unlike EVP_CIPHER, EVP_AEAD does not provide much support for dynamically getting a cipher from a string, nor for getting info about a chosen cipher. I had to provide this in ncrypto itself. This PR also adds a couple tests.

Copy link
Member

@jasnell jasnell left a comment

Choose a reason for hiding this comment

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

Couple of nits... otherwise LGTM

@jasnell jasnell merged commit 50b68a6 into nodejs:main Nov 5, 2025
10 checks passed
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.

3 participants