diff options
author | Matt Johnston <matt@ucc.asn.au> | 2020-06-23 22:25:57 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2020-06-23 22:25:57 +0800 |
commit | 2771fab0fa99aaffab8d17cad4ad8722fb0b310b (patch) | |
tree | 8161e64536e695892f8dd85b2a83e20075108846 | |
parent | a7a67585cbc3fe5df85c641618b347a51a943356 (diff) | |
parent | 366f01252e65a628fdb10e4e9714b24608eee27f (diff) |
merge
-rw-r--r-- | ed25519.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -84,7 +84,7 @@ int buf_get_ed25519_priv_key(buffer *buf, dropbear_ed25519_key *key) { memcpy(key->pub, buf_getptr(buf, CURVE25519_LEN), CURVE25519_LEN); buf_incrpos(buf, CURVE25519_LEN); - TRACE(("leave buf_get_ed25519_pub_key: success")) + TRACE(("leave buf_get_ed25519_priv_key: success")) return DROPBEAR_SUCCESS; } @@ -100,7 +100,7 @@ void ed25519_key_free(dropbear_ed25519_key *key) { m_burn(key->priv, CURVE25519_LEN); m_free(key); - TRACE2(("leave rsa_key_free")) + TRACE2(("leave ed25519_key_free")) } /* Put the public ed25519 key into the buffer in the required format */ @@ -160,7 +160,7 @@ int buf_ed25519_verify(buffer *buf, const dropbear_ed25519_key *key, const buffe slen = buf_getint(buf); if (slen != 64 || buf->len - buf->pos < slen) { - TRACE(("bad size")) + TRACE(("leave buf_ed25519_verify: bad size")) goto out; } s = buf_getptr(buf, slen); @@ -168,7 +168,7 @@ int buf_ed25519_verify(buffer *buf, const dropbear_ed25519_key *key, const buffe if (dropbear_ed25519_verify(data_buf->data, data_buf->len, s, slen, key->pub) == 0) { /* signature is valid */ - TRACE(("success!")) + TRACE(("leave buf_ed25519_verify: success!")) ret = DROPBEAR_SUCCESS; } |