Skip to content

Commit f274e69

Browse files
tniessenjasnell
authored andcommitted
crypto: fix explanation in CipherBase::SetAuthTag
PR-URL: #20197 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent 2fd7284 commit f274e69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node_crypto.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2911,7 +2911,7 @@ void CipherBase::SetAuthTag(const FunctionCallbackInfo<Value>& args) {
29112911
}
29122912
}
29132913

2914-
// Note: we don't use std::max() here to work around a header conflict.
2914+
// Note: we don't use std::min() here to work around a header conflict.
29152915
cipher->auth_tag_len_ = tag_len;
29162916
if (cipher->auth_tag_len_ > sizeof(cipher->auth_tag_))
29172917
cipher->auth_tag_len_ = sizeof(cipher->auth_tag_);

0 commit comments

Comments
 (0)