Skip to content

Commit 854f840

Browse files
committed
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 3ba81e3 commit 854f840

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/node_crypto.cc‎

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

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

0 commit comments

Comments
 (0)