summaryrefslogtreecommitdiff
path: root/kex.h
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2019-01-21 10:03:37 +0000
committerDamien Miller <djm@mindrot.org>2019-01-21 21:47:28 +1100
commitdec5e9d33891e3bc3f1395d7db0e56fdc7f86dfc (patch)
treea91c7543cc726563651cc9eb2603f205ab7b27b1 /kex.h
parente93bd98eab79b9a78f64ee8dd4dffc4d3979c7ae (diff)
upstream: factor out kex_dh_compute_key() - it's shared between
plain DH KEX and DH GEX in both the client and server implementations from markus@ ok djm@ OpenBSD-Commit-ID: 12186e18791fffcd4642c82e7e0cfdd7ea37e2ec
Diffstat (limited to 'kex.h')
-rw-r--r--kex.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/kex.h b/kex.h
index 4394e100b..a11bd5ae6 100644
--- a/kex.h
+++ b/kex.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: kex.h,v 1.95 2019/01/21 10:00:23 djm Exp $ */ 1/* $OpenBSD: kex.h,v 1.96 2019/01/21 10:03:37 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.
@@ -203,15 +203,16 @@ int kexc25519_client(struct ssh *);
203int kexc25519_server(struct ssh *); 203int kexc25519_server(struct ssh *);
204 204
205int kex_dh_keygen(struct kex *); 205int kex_dh_keygen(struct kex *);
206int kex_dh_compute_key(struct kex *, BIGNUM *, struct sshbuf *);
206int kex_dh_hash(int, const struct sshbuf *, const struct sshbuf *, 207int kex_dh_hash(int, const struct sshbuf *, const struct sshbuf *,
207 const u_char *, size_t, const u_char *, size_t, const u_char *, size_t, 208 const u_char *, size_t, const u_char *, size_t, const u_char *, size_t,
208 const BIGNUM *, const BIGNUM *, const BIGNUM *, u_char *, size_t *); 209 const BIGNUM *, const BIGNUM *, const u_char *, size_t, u_char *, size_t *);
209 210
210int kexgex_hash(int, const struct sshbuf *, const struct sshbuf *, 211int kexgex_hash(int, const struct sshbuf *, const struct sshbuf *,
211 const u_char *, size_t, const u_char *, size_t, const u_char *, size_t, 212 const u_char *, size_t, const u_char *, size_t, const u_char *, size_t,
212 int, int, int, 213 int, int, int,
213 const BIGNUM *, const BIGNUM *, const BIGNUM *, 214 const BIGNUM *, const BIGNUM *, const BIGNUM *,
214 const BIGNUM *, const BIGNUM *, 215 const BIGNUM *, const u_char *, size_t,
215 u_char *, size_t *); 216 u_char *, size_t *);
216 217
217int kex_ecdh_hash(int, const EC_GROUP *, 218int kex_ecdh_hash(int, const EC_GROUP *,