Lines Matching refs:kex
46 kex_ecdh_dec_key_group(struct kex *, const struct sshbuf *, EC_KEY *key,
50 kex_ecdh_keypair(struct kex *kex) in kex_ecdh_keypair() argument
58 if ((client_key = EC_KEY_new_by_curve_name(kex->ec_nid)) == NULL) { in kex_ecdh_keypair()
80 kex->ec_client_key = client_key; in kex_ecdh_keypair()
81 kex->ec_group = group; in kex_ecdh_keypair()
83 kex->client_pub = buf; in kex_ecdh_keypair()
92 kex_ecdh_enc(struct kex *kex, const struct sshbuf *client_blob, in kex_ecdh_enc() argument
104 if ((server_key = EC_KEY_new_by_curve_name(kex->ec_nid)) == NULL) { in kex_ecdh_enc()
126 if ((r = kex_ecdh_dec_key_group(kex, client_blob, server_key, group, in kex_ecdh_enc()
138 kex_ecdh_dec_key_group(struct kex *kex, const struct sshbuf *ec_blob, in kex_ecdh_dec_key_group() argument
200 kex_ecdh_dec(struct kex *kex, const struct sshbuf *server_blob, in kex_ecdh_dec() argument
205 r = kex_ecdh_dec_key_group(kex, server_blob, kex->ec_client_key, in kex_ecdh_dec()
206 kex->ec_group, shared_secretp); in kex_ecdh_dec()
207 EC_KEY_free(kex->ec_client_key); in kex_ecdh_dec()
208 kex->ec_client_key = NULL; in kex_ecdh_dec()
216 struct kex;
221 kex_ecdh_keypair(struct kex *kex) in kex_ecdh_keypair() argument
227 kex_ecdh_enc(struct kex *kex, const struct sshbuf *client_blob, in kex_ecdh_enc() argument
234 kex_ecdh_dec(struct kex *kex, const struct sshbuf *server_blob, in kex_ecdh_dec() argument