From 4fd6ca2f2db49c8aecb5c5a8ab113221c7a656d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Nie=C3=9Fen?= Date: Tue, 30 Aug 2022 14:26:54 +0000 Subject: [PATCH] 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. --- src/crypto/crypto_cipher.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crypto/crypto_cipher.cc b/src/crypto/crypto_cipher.cc index 44b54363dd1ec2..397f248f2ca61a 100644 --- a/src/crypto/crypto_cipher.cc +++ b/src/crypto/crypto_cipher.cc @@ -1063,7 +1063,7 @@ void PublicKeyCipher::Cipher(const FunctionCallbackInfo& args) { ArrayBufferOrViewContents oaep_label( !args[offset + 3]->IsUndefined() ? args[offset + 3] : Local()); 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 out; if (!Cipher(