Skip to content

Commit 88d77dd

Browse files
committed
fix: Fixed typo of lenght to length
Signed-off-by: kubikusik <jakubmical@student.agh.edu.pl>
1 parent b40e5ab commit 88d77dd

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/sdk/main/include/impl/ASN1ECKey.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace Hiero::internal::asn1
88
{
99
constexpr size_t EC_KEY_LENGTH = 32; // bytes
1010
// more than this would be a malicious attempt
11-
constexpr size_t MAX_ENCRYPTED_KEY_LENGHT = 160; // bytes ~ 320 characters
11+
constexpr size_t MAX_ENCRYPTED_KEY_LENGTH = 160; // bytes ~ 320 characters
1212

1313
/**
1414
* @class ASN1Key

src/sdk/main/src/impl/ASN1ECPrivateKey.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace Hiero::internal::asn1
99
{
1010
ASN1ECPrivateKey::ASN1ECPrivateKey(const std::vector<std::byte>& bytes)
1111
{
12-
if (bytes.size() >= MAX_ENCRYPTED_KEY_LENGHT)
12+
if (bytes.size() >= MAX_ENCRYPTED_KEY_LENGTH)
1313
{
1414
throw BadKeyException("Over maximum possible input bytes for EC Key!");
1515
}

src/sdk/main/src/impl/ASN1ECPublicKey.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ namespace Hiero::internal::asn1
1414
{
1515
ASN1ECPublicKey::ASN1ECPublicKey(const std::vector<std::byte>& bytes)
1616
{
17-
if (bytes.size() >= MAX_ENCRYPTED_KEY_LENGHT)
17+
if (bytes.size() >= MAX_ENCRYPTED_KEY_LENGTH)
1818
{
1919
throw BadKeyException("Over maximum possible input bytes for EC Key!");
2020
}

src/sdk/main/src/impl/ASN1ED25519PrivateKey.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace Hiero::internal::asn1
99
{
1010
ASN1ED25519PrivateKey::ASN1ED25519PrivateKey(const std::vector<std::byte>& bytes)
1111
{
12-
if (bytes.size() >= MAX_ENCRYPTED_KEY_LENGHT)
12+
if (bytes.size() >= MAX_ENCRYPTED_KEY_LENGTH)
1313
{
1414
throw BadKeyException("Over maximum possible input bytes for EC Key!");
1515
}

src/sdk/main/src/impl/ASN1ED25519PublicKey.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace Hiero::internal::asn1
99
{
1010
ASN1ED25519PublicKey::ASN1ED25519PublicKey(const std::vector<std::byte>& bytes)
1111
{
12-
if (bytes.size() >= MAX_ENCRYPTED_KEY_LENGHT)
12+
if (bytes.size() >= MAX_ENCRYPTED_KEY_LENGTH)
1313
{
1414
throw BadKeyException("Over maximum possible input bytes for EC Key!");
1515
}

0 commit comments

Comments
 (0)