Skip to content

Commit 35cbe1a

Browse files
tniessenRafaelGSS
authored andcommitted
crypto: use actual option name in error message
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 <panva.ip@gmail.com> Reviewed-By: theanarkh <theratliter@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 2dd88b8 commit 35cbe1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/crypto/crypto_cipher.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1063,7 +1063,7 @@ void PublicKeyCipher::Cipher(const FunctionCallbackInfo<Value>& args) {
10631063
ArrayBufferOrViewContents<unsigned char> oaep_label(
10641064
!args[offset + 3]->IsUndefined() ? args[offset + 3] : Local<Value>());
10651065
if (UNLIKELY(!oaep_label.CheckSizeInt32()))
1066-
return THROW_ERR_OUT_OF_RANGE(env, "oaep_label is too big");
1066+
return THROW_ERR_OUT_OF_RANGE(env, "oaepLabel is too big");
10671067

10681068
std::unique_ptr<BackingStore> out;
10691069
if (!Cipher<operation, EVP_PKEY_cipher_init, EVP_PKEY_cipher>(

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy