Skip to content

Commit

Permalink
crypto: fix explanation in CipherBase::SetAuthTag
Browse files Browse the repository at this point in the history
PR-URL: #20197
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
tniessen authored and jasnell committed Apr 23, 2018
1 parent 2fd7284 commit f274e69
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
@@ -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_);

0 comments on commit f274e69

Please sign in to comment.