Skip to content

Commit b02d062

Browse files
committed
sign: Fix typo in error messages
Signed-off-by: Daiki Ueno <[email protected]>
1 parent 97fb111 commit b02d062

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/libostree/ostree-sign-ed25519.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ validate_length (gsize found, gsize expected, GError **error)
103103
return TRUE;
104104
return glnx_throw (
105105
error, "Ill-formed input: expected %" G_GSIZE_FORMAT " bytes, got %" G_GSIZE_FORMAT " bytes",
106-
found, expected);
106+
expected, found);
107107
}
108108

109109
static gboolean
@@ -152,7 +152,7 @@ ostree_sign_ed25519_data (OstreeSign *self, GBytes *data, GBytes **signature,
152152
if (!pkey)
153153
{
154154
EVP_MD_CTX_free (ctx);
155-
return glnx_throw (error, "openssl: Failed to initialize ed5519 key");
155+
return glnx_throw (error, "openssl: Failed to initialize ed25519 key");
156156
}
157157

158158
size_t len;

src/libotcore/otcore-ed25519-verify.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ otcore_validate_ed25519_signature (GBytes *data, GBytes *public_key, GBytes *sig
9797
if (!pkey)
9898
{
9999
EVP_MD_CTX_free (ctx);
100-
return glnx_throw (error, "openssl: Failed to initialize ed5519 key");
100+
return glnx_throw (error, "openssl: Failed to initialize ed25519 key");
101101
}
102102
if (EVP_DigestVerifyInit (ctx, NULL, NULL, NULL, pkey) != 0
103103
&& EVP_DigestVerify (ctx, signature_buf, OSTREE_SIGN_ED25519_SIG_SIZE,

0 commit comments

Comments
 (0)