Skip to content

Commit

Permalink
crypto: use actual option name in error message
Browse files Browse the repository at this point in the history
oaep_label is the name of the C++ variable. Use oaepLabel instead, which
is the name of the documented option.

PR-URL: #44455
Reviewed-By: Filip Skokan <[email protected]>
Reviewed-By: theanarkh <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
  • Loading branch information
tniessen authored and juanarbol committed Oct 11, 2022
1 parent 6be761e commit 7100bae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/crypto/crypto_cipher.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1052,7 +1052,7 @@ void PublicKeyCipher::Cipher(const FunctionCallbackInfo<Value>& args) {
if (!args[offset + 3]->IsUndefined()) {
oaep_label = ArrayBufferOrViewContents<unsigned char>(args[offset + 3]);
if (UNLIKELY(!oaep_label.CheckSizeInt32()))
return THROW_ERR_OUT_OF_RANGE(env, "oaep_label is too big");
return THROW_ERR_OUT_OF_RANGE(env, "oaepLabel is too big");
}

std::unique_ptr<BackingStore> out;
Expand Down

0 comments on commit 7100bae

Please sign in to comment.