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:
Tobias Nießen authored and James M Snell committed 2018-04-23 07:13:44 -07:00
1 parent 2fd7284add
commit f274e6921f
1 file changed
+1 -1
+1 -1
View File
@@ -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_);