mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
crypto: fix explanation in CipherBase::SetAuthTag
PR-URL: https://github.com/nodejs/node/pull/20197 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
1 parent
2fd7284add
commit
f274e6921f
1 file changed
+1
-1
+1
-1
@@ -2911,7 +2911,7 @@ void CipherBase::SetAuthTag(const FunctionCallbackInfo<Value>& args) {
|
||||
}
|
||||
}
|
||||
|
||||
// Note: we don't use std::max() here to work around a header conflict.
|
||||
// Note: we don't use std::min() here to work around a header conflict.
|
||||
cipher->auth_tag_len_ = tag_len;
|
||||
if (cipher->auth_tag_len_ > sizeof(cipher->auth_tag_))
|
||||
cipher->auth_tag_len_ = sizeof(cipher->auth_tag_);
|
||||
|
||||
Reference in new issue
Block a user