aboutsummaryrefslogtreecommitdiff
path: root/src/common/crypto_ed25519.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-06-27 18:21:35 -0400
committerNick Mathewson <nickm@torproject.org>2017-06-27 18:21:35 -0400
commit3f940415897ec905859314fe2bf129951cd54678 (patch)
tree9ad2d45a1ac104e9a1eca0f8e9daa6c963b0f189 /src/common/crypto_ed25519.c
parenta155035d208fb2c05efdad22fe64ea2d6be929a1 (diff)
downloadtor-3f940415897ec905859314fe2bf129951cd54678.tar.gz
tor-3f940415897ec905859314fe2bf129951cd54678.zip
no newlines in log messages.
Diffstat (limited to 'src/common/crypto_ed25519.c')
-rw-r--r--src/common/crypto_ed25519.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/crypto_ed25519.c b/src/common/crypto_ed25519.c
index 6ebb2a78b9..1a6d19b97b 100644
--- a/src/common/crypto_ed25519.c
+++ b/src/common/crypto_ed25519.c
@@ -783,7 +783,7 @@ ed25519_validate_pubkey(const ed25519_public_key_t *pubkey)
/* First check that we were not given the identity element */
if (ed25519_point_is_identity_element(pubkey->pubkey)) {
- log_warn(LD_CRYPTO, "ed25519 pubkey is the identity\n");
+ log_warn(LD_CRYPTO, "ed25519 pubkey is the identity");
return -1;
}
@@ -792,12 +792,12 @@ ed25519_validate_pubkey(const ed25519_public_key_t *pubkey)
* identity element is returned. */
if (get_ed_impl()->ed25519_scalarmult_with_group_order(result,
pubkey->pubkey) < 0) {
- log_warn(LD_CRYPTO, "ed25519 group order scalarmult failed\n");
+ log_warn(LD_CRYPTO, "ed25519 group order scalarmult failed");
return -1;
}
if (!ed25519_point_is_identity_element(result)) {
- log_warn(LD_CRYPTO, "ed25519 validation failed\n");
+ log_warn(LD_CRYPTO, "ed25519 validation failed");
return -1;
}