Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/sdk/main/include/impl/ASN1ECKey.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Hiero::internal::asn1
{
constexpr size_t EC_KEY_LENGTH = 32; // bytes
// more than this would be a malicious attempt
constexpr size_t MAX_ENCRYPTED_KEY_LENGHT = 160; // bytes ~ 320 characters
constexpr size_t MAX_ENCRYPTED_KEY_LENGTH = 160; // bytes ~ 320 characters

/**
* @class ASN1Key
Expand Down
2 changes: 1 addition & 1 deletion src/sdk/main/src/impl/ASN1ECPrivateKey.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace Hiero::internal::asn1
{
ASN1ECPrivateKey::ASN1ECPrivateKey(const std::vector<std::byte>& bytes)
{
if (bytes.size() >= MAX_ENCRYPTED_KEY_LENGHT)
if (bytes.size() >= MAX_ENCRYPTED_KEY_LENGTH)
{
throw BadKeyException("Over maximum possible input bytes for EC Key!");
}
Expand Down
2 changes: 1 addition & 1 deletion src/sdk/main/src/impl/ASN1ECPublicKey.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace Hiero::internal::asn1
{
ASN1ECPublicKey::ASN1ECPublicKey(const std::vector<std::byte>& bytes)
{
if (bytes.size() >= MAX_ENCRYPTED_KEY_LENGHT)
if (bytes.size() >= MAX_ENCRYPTED_KEY_LENGTH)
{
throw BadKeyException("Over maximum possible input bytes for EC Key!");
}
Expand Down
2 changes: 1 addition & 1 deletion src/sdk/main/src/impl/ASN1ED25519PrivateKey.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace Hiero::internal::asn1
{
ASN1ED25519PrivateKey::ASN1ED25519PrivateKey(const std::vector<std::byte>& bytes)
{
if (bytes.size() >= MAX_ENCRYPTED_KEY_LENGHT)
if (bytes.size() >= MAX_ENCRYPTED_KEY_LENGTH)
{
throw BadKeyException("Over maximum possible input bytes for EC Key!");
}
Expand Down
2 changes: 1 addition & 1 deletion src/sdk/main/src/impl/ASN1ED25519PublicKey.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace Hiero::internal::asn1
{
ASN1ED25519PublicKey::ASN1ED25519PublicKey(const std::vector<std::byte>& bytes)
{
if (bytes.size() >= MAX_ENCRYPTED_KEY_LENGHT)
if (bytes.size() >= MAX_ENCRYPTED_KEY_LENGTH)
{
throw BadKeyException("Over maximum possible input bytes for EC Key!");
}
Expand Down
Loading