Lines Matching defs:kex
40 #include "kex.h"
46 kex_ecdh_dec_key_group(struct kex *, const struct sshbuf *, EC_KEY *key,
50 kex_ecdh_keypair(struct kex *kex)
58 if ((client_key = EC_KEY_new_by_curve_name(kex->ec_nid)) == NULL) {
80 kex->ec_client_key = client_key;
81 kex->ec_group = group;
82 client_key = NULL; /* owned by the kex */
83 kex->client_pub = buf;
92 kex_ecdh_enc(struct kex *kex, const struct sshbuf *client_blob,
104 if ((server_key = EC_KEY_new_by_curve_name(kex->ec_nid)) == NULL) {
126 if ((r = kex_ecdh_dec_key_group(kex, client_blob, server_key, group,
138 kex_ecdh_dec_key_group(struct kex *kex, const struct sshbuf *ec_blob,
200 kex_ecdh_dec(struct kex *kex, const struct sshbuf *server_blob,
205 r = kex_ecdh_dec_key_group(kex, server_blob, kex->ec_client_key,
206 kex->ec_group, shared_secretp);
207 EC_KEY_free(kex->ec_client_key);
208 kex->ec_client_key = NULL;
216 struct kex;
221 kex_ecdh_keypair(struct kex *kex)
227 kex_ecdh_enc(struct kex *kex, const struct sshbuf *client_blob,
234 kex_ecdh_dec(struct kex *kex, const struct sshbuf *server_blob,