Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
crypto: fix explanation in CipherBase::SetAuthTag
  • Loading branch information
tniessen committed Apr 21, 2018
commit 52e0a1a5b1155eaa45938ff03c5ff5ff287f319e
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