Skip to content

Commit 229b1e1

Browse files
committed
src: hide kMaxDigestMultiplier outside HKDF impl
There is no reason to expose this constant outside of the HKDF implementation, especially with such a generic name.
1 parent 5117c6c commit 229b1e1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/crypto/crypto_hkdf.cc

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ using v8::Uint32;
1717
using v8::Value;
1818

1919
namespace crypto {
20+
static constexpr size_t kMaxDigestMultiplier = 255;
21+
2022
HKDFConfig::HKDFConfig(HKDFConfig&& other) noexcept
2123
: mode(other.mode),
2224
length(other.length),

src/crypto/crypto_hkdf.h

-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111

1212
namespace node {
1313
namespace crypto {
14-
static constexpr size_t kMaxDigestMultiplier = 255;
15-
1614
struct HKDFConfig final : public MemoryRetainer {
1715
CryptoJobMode mode;
1816
size_t length;

0 commit comments

Comments
 (0)