Unverified Commit 624e516f authored by Tobias Nießen's avatar Tobias Nießen Committed by Michaël Zasso
Browse files

crypto: fix edge case in authenticated encryption

Restricting the authentication tag length and calling update or
setAAD before setAuthTag caused an incorrect authentication tag to
be passed to OpenSSL: The auth_tag_len_ field was already set, so
the implementation assumed that the tag itself was known as well.

PR-URL: https://github.com/nodejs/node/pull/22828


Reviewed-By: default avatarDaniel Bevenius <daniel.bevenius@gmail.com>
parent 329ac604
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment