From f274e6921ff1385d5acfca7ac404c9429a4e3f7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Nie=C3=9Fen?= Date: Sat, 21 Apr 2018 10:56:47 +0200 Subject: [PATCH] crypto: fix explanation in CipherBase::SetAuthTag PR-URL: https://github.com/nodejs/node/pull/20197 Reviewed-By: Anna Henningsen Reviewed-By: Luigi Pinca Reviewed-By: Colin Ihrig --- src/node_crypto.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node_crypto.cc b/src/node_crypto.cc index 7b427e37b01..111227e665c 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -2911,7 +2911,7 @@ void CipherBase::SetAuthTag(const FunctionCallbackInfo& 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_);