Skip to content

Commit

Permalink
crypto: fix explanation in CipherBase::SetAuthTag
Browse files Browse the repository at this point in the history
PR-URL: nodejs#20197
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
  • Loading branch information
tniessen committed Apr 22, 2018
1 parent 3ba81e3 commit 854f840
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node_crypto.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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_);
Expand Down

0 comments on commit 854f840

Please sign in to comment.