summaryrefslogtreecommitdiff
path: root/kex.h
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2019-01-21 10:28:01 +0000
committerDamien Miller <djm@mindrot.org>2019-01-21 22:08:47 +1100
commit9c9c97e14fe190931f341876ad98213e1e1dc19f (patch)
tree079c12ccb4e1538928872d4bc5623727119291e2 /kex.h
parent2f6a9ddbbf6ca8623c53c323ff17fb6d68d66970 (diff)
upstream: use KEM API for vanilla DH KEX
from markus@ ok djm@ OpenBSD-Commit-ID: af56466426b08a8be275412ae2743319e3d277c9
Diffstat (limited to 'kex.h')
-rw-r--r--kex.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/kex.h b/kex.h
index 2eec2e04f..de5e473e1 100644
--- a/kex.h
+++ b/kex.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: kex.h,v 1.100 2019/01/21 10:24:09 djm Exp $ */ 1/* $OpenBSD: kex.h,v 1.101 2019/01/21 10:28:01 djm Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2000, 2001 Markus Friedl. All rights reserved. 4 * Copyright (c) 2000, 2001 Markus Friedl. All rights reserved.
@@ -211,6 +211,11 @@ int kexc25519_server(struct ssh *);
211int kex_kem_client(struct ssh *); 211int kex_kem_client(struct ssh *);
212int kex_kem_server(struct ssh *); 212int kex_kem_server(struct ssh *);
213 213
214int kex_dh_keypair(struct kex *);
215int kex_dh_enc(struct kex *, const u_char *, size_t, struct sshbuf **,
216 struct sshbuf **);
217int kex_dh_dec(struct kex *, const u_char *, size_t, struct sshbuf **);
218
214int kex_c25519_keypair(struct kex *); 219int kex_c25519_keypair(struct kex *);
215int kex_c25519_enc(struct kex *, const u_char *, size_t, struct sshbuf **, 220int kex_c25519_enc(struct kex *, const u_char *, size_t, struct sshbuf **,
216 struct sshbuf **); 221 struct sshbuf **);
@@ -224,9 +229,6 @@ int kex_kem_sntrup4591761x25519_dec(struct kex *, const u_char *, size_t,
224 229
225int kex_dh_keygen(struct kex *); 230int kex_dh_keygen(struct kex *);
226int kex_dh_compute_key(struct kex *, BIGNUM *, struct sshbuf *); 231int kex_dh_compute_key(struct kex *, BIGNUM *, struct sshbuf *);
227int kex_dh_hash(int, const struct sshbuf *, const struct sshbuf *,
228 const u_char *, size_t, const u_char *, size_t, const u_char *, size_t,
229 const BIGNUM *, const BIGNUM *, const u_char *, size_t, u_char *, size_t *);
230 232
231int kexgex_hash(int, const struct sshbuf *, const struct sshbuf *, 233int kexgex_hash(int, const struct sshbuf *, const struct sshbuf *,
232 const u_char *, size_t, const u_char *, size_t, const u_char *, size_t, 234 const u_char *, size_t, const u_char *, size_t, const u_char *, size_t,