Lines Matching refs:kex
134 struct kex { struct
163 int (*kex[KEX_MAX])(struct ssh *); argument
182 struct kex *kex_new(void); argument
186 void kex_free(struct kex *);
206 int kex_dh_keypair(struct kex *);
207 int kex_dh_enc(struct kex *, const struct sshbuf *, struct sshbuf **,
209 int kex_dh_dec(struct kex *, const struct sshbuf *, struct sshbuf **);
211 int kex_ecdh_keypair(struct kex *);
212 int kex_ecdh_enc(struct kex *, const struct sshbuf *, struct sshbuf **,
214 int kex_ecdh_dec(struct kex *, const struct sshbuf *, struct sshbuf **);
216 int kex_c25519_keypair(struct kex *);
217 int kex_c25519_enc(struct kex *, const struct sshbuf *, struct sshbuf **,
219 int kex_c25519_dec(struct kex *, const struct sshbuf *, struct sshbuf **);
221 int kex_kem_sntrup4591761x25519_keypair(struct kex *);
222 int kex_kem_sntrup4591761x25519_enc(struct kex *, const struct sshbuf *,
224 int kex_kem_sntrup4591761x25519_dec(struct kex *, const struct sshbuf *,
227 int kex_dh_keygen(struct kex *);
228 int kex_dh_compute_key(struct kex *, BIGNUM *, struct sshbuf *);