diff options
author | Tobias Nießen <tniessen@tnie.de> | 2018-04-21 10:56:47 +0200 |
---|---|---|
committer | Tobias Nießen <tniessen@tnie.de> | 2018-04-23 01:46:28 +0200 |
commit | 854f840243b0b531f9569f9304a6810b01bd9778 (patch) | |
tree | dc9612c4b730de166e37ff5786fe154c46bc797d | |
parent | 3ba81e34e86a5c32658e218cb6e65b13e8326bc5 (diff) | |
download | android-node-v8-854f840243b0b531f9569f9304a6810b01bd9778.tar.gz android-node-v8-854f840243b0b531f9569f9304a6810b01bd9778.tar.bz2 android-node-v8-854f840243b0b531f9569f9304a6810b01bd9778.zip |
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>
-rw-r--r-- | src/node_crypto.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_crypto.cc b/src/node_crypto.cc index b37b7e62c2..2bdda4566d 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -2910,7 +2910,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_); |