diff options
author | djm@openbsd.org <djm@openbsd.org> | 2019-01-21 10:03:37 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2019-01-21 21:47:28 +1100 |
commit | dec5e9d33891e3bc3f1395d7db0e56fdc7f86dfc (patch) | |
tree | a91c7543cc726563651cc9eb2603f205ab7b27b1 /kex.h | |
parent | e93bd98eab79b9a78f64ee8dd4dffc4d3979c7ae (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.h | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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 *); | |||
203 | int kexc25519_server(struct ssh *); | 203 | int kexc25519_server(struct ssh *); |
204 | 204 | ||
205 | int kex_dh_keygen(struct kex *); | 205 | int kex_dh_keygen(struct kex *); |
206 | int kex_dh_compute_key(struct kex *, BIGNUM *, struct sshbuf *); | ||
206 | int kex_dh_hash(int, const struct sshbuf *, const struct sshbuf *, | 207 | int 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 | ||
210 | int kexgex_hash(int, const struct sshbuf *, const struct sshbuf *, | 211 | int 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 | ||
217 | int kex_ecdh_hash(int, const EC_GROUP *, | 218 | int kex_ecdh_hash(int, const EC_GROUP *, |