comparison ed25519.c @ 1707:41a0ff8d5a89

void return types for curve25519
author Matt Johnston <matt@ucc.asn.au>
date Sat, 30 May 2020 00:05:49 +0800
parents d32bcb5c557d
children 93dcc97c3f3f
comparison
equal deleted inserted replaced
1706:3f80da5fe0b4 1707:41a0ff8d5a89
137 unsigned long slen = sizeof(s); 137 unsigned long slen = sizeof(s);
138 138
139 TRACE(("enter buf_put_ed25519_sign")) 139 TRACE(("enter buf_put_ed25519_sign"))
140 dropbear_assert(key != NULL); 140 dropbear_assert(key != NULL);
141 141
142 if (dropbear_ed25519_sign(data_buf->data, data_buf->len, 142 dropbear_ed25519_sign(data_buf->data, data_buf->len, s, &slen, key->priv, key->pub);
143 s, &slen, key->priv, key->pub) == 0) { 143 buf_putstring(buf, SSH_SIGNKEY_ED25519, SSH_SIGNKEY_ED25519_LEN);
144 buf_putstring(buf, SSH_SIGNKEY_ED25519, SSH_SIGNKEY_ED25519_LEN); 144 buf_putstring(buf, s, slen);
145 buf_putstring(buf, s, slen);
146 }
147 145
148 TRACE(("leave buf_put_ed25519_sign")) 146 TRACE(("leave buf_put_ed25519_sign"))
149 } 147 }
150 148
151 #if DROPBEAR_SIGNKEY_VERIFY 149 #if DROPBEAR_SIGNKEY_VERIFY