Lines Matching refs:kex
41 #include "kex.h"
47 kex_ecdh_dec_key_group(struct kex *, const struct sshbuf *, EC_KEY *key,
51 kex_ecdh_keypair(struct kex *kex)
59 if ((client_key = EC_KEY_new_by_curve_name(kex->ec_nid)) == NULL) {
81 kex->ec_client_key = client_key;
82 kex->ec_group = group;
83 client_key = NULL; /* owned by the kex */
84 kex->client_pub = buf;
93 kex_ecdh_enc(struct kex *kex, const struct sshbuf *client_blob,
105 if ((server_key = EC_KEY_new_by_curve_name(kex->ec_nid)) == NULL) {
127 if ((r = kex_ecdh_dec_key_group(kex, client_blob, server_key, group,
139 kex_ecdh_dec_key_group(struct kex *kex, const struct sshbuf *ec_blob,
201 kex_ecdh_dec(struct kex *kex, const struct sshbuf *server_blob,
206 r = kex_ecdh_dec_key_group(kex, server_blob, kex->ec_client_key,
207 kex->ec_group, shared_secretp);
208 EC_KEY_free(kex->ec_client_key);
209 kex->ec_client_key = NULL;