Skip to content

Commit ae28178

Browse files
committed
Fix misprint.
1 parent 9239bd4 commit ae28178

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tdutils/td/utils/Ed25519.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ Result<SecureString> Ed25519::get_public_key(Slice private_key) {
319319
#if OPENSSL_VERSION_NUMBER >= 0x10101000L
320320
auto pkey_private = EVP_PKEY_new_raw_private_key(EVP_PKEY_X25519, nullptr, private_key.ubegin(), 32);
321321
if (pkey_private == nullptr) {
322-
return Status::Error("Invalid X25520 private key");
322+
return Status::Error("Invalid X25519 private key");
323323
}
324324
SCOPE_EXIT {
325325
EVP_PKEY_free(pkey_private);

test/crypto.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class Handshake {
7575
static td::Result<td::SecureString> calc_shared_secret(td::Slice private_key, td::Slice other_public_key) {
7676
auto pkey_private = EVP_PKEY_new_raw_private_key(EVP_PKEY_X25519, nullptr, private_key.ubegin(), 32);
7777
if (pkey_private == nullptr) {
78-
return td::Status::Error("Invalid X25520 private key");
78+
return td::Status::Error("Invalid X25519 private key");
7979
}
8080
SCOPE_EXIT {
8181
EVP_PKEY_free(pkey_private);
@@ -123,7 +123,7 @@ class Handshake {
123123
static td::Result<td::SecureString> get_public_key(td::Slice private_key) {
124124
auto pkey_private = EVP_PKEY_new_raw_private_key(EVP_PKEY_X25519, nullptr, private_key.ubegin(), 32);
125125
if (pkey_private == nullptr) {
126-
return td::Status::Error("Invalid X25520 private key");
126+
return td::Status::Error("Invalid X25519 private key");
127127
}
128128
SCOPE_EXIT {
129129
EVP_PKEY_free(pkey_private);

0 commit comments

Comments
 (0)