Skip to content

Commit

Permalink
src: hide kMaxDigestMultiplier outside HKDF impl
Browse files Browse the repository at this point in the history
There is no reason to expose this constant outside of the HKDF
implementation, especially with such a generic name.
  • Loading branch information
tniessen committed Jan 14, 2023
1 parent 5117c6c commit 229b1e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/crypto/crypto_hkdf.cc
Expand Up @@ -17,6 +17,8 @@ using v8::Uint32;
using v8::Value;

namespace crypto {
static constexpr size_t kMaxDigestMultiplier = 255;

HKDFConfig::HKDFConfig(HKDFConfig&& other) noexcept
: mode(other.mode),
length(other.length),
Expand Down
2 changes: 0 additions & 2 deletions src/crypto/crypto_hkdf.h
Expand Up @@ -11,8 +11,6 @@

namespace node {
namespace crypto {
static constexpr size_t kMaxDigestMultiplier = 255;

struct HKDFConfig final : public MemoryRetainer {
CryptoJobMode mode;
size_t length;
Expand Down

0 comments on commit 229b1e1

Please sign in to comment.