File tree Expand file tree Collapse file tree 5 files changed +5
-5
lines changed
Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ namespace Hiero::internal::asn1
88{
99constexpr 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
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ namespace Hiero::internal::asn1
99{
1010ASN1ECPrivateKey::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 }
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ namespace Hiero::internal::asn1
1414{
1515ASN1ECPublicKey::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 }
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ namespace Hiero::internal::asn1
99{
1010ASN1ED25519PrivateKey::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 }
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ namespace Hiero::internal::asn1
99{
1010ASN1ED25519PublicKey::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 }
You can’t perform that action at this time.
0 commit comments