Lines Matching defs:kex
1 /* $OpenBSD: kex.h,v 1.122 2024/02/02 00:13:34 djm Exp $ */
108 /* kex->flags */
141 struct kex {
174 int (*kex[KEX_MAX])(struct ssh *);
175 /* kex specific state */
196 struct kex *kex_new(void);
200 void kex_free(struct kex *);
223 int kex_dh_keypair(struct kex *);
224 int kex_dh_enc(struct kex *, const struct sshbuf *, struct sshbuf **,
226 int kex_dh_dec(struct kex *, const struct sshbuf *, struct sshbuf **);
228 int kex_ecdh_keypair(struct kex *);
229 int kex_ecdh_enc(struct kex *, const struct sshbuf *, struct sshbuf **,
231 int kex_ecdh_dec(struct kex *, const struct sshbuf *, struct sshbuf **);
233 int kex_c25519_keypair(struct kex *);
234 int kex_c25519_enc(struct kex *, const struct sshbuf *, struct sshbuf **,
236 int kex_c25519_dec(struct kex *, const struct sshbuf *, struct sshbuf **);
238 int kex_kem_sntrup761x25519_keypair(struct kex *);
239 int kex_kem_sntrup761x25519_enc(struct kex *, const struct sshbuf *,
241 int kex_kem_sntrup761x25519_dec(struct kex *, const struct sshbuf *,
244 int kex_dh_keygen(struct kex *);
245 int kex_dh_compute_key(struct kex *, BIGNUM *, struct sshbuf *);