diff options
author | djm@openbsd.org <djm@openbsd.org> | 2019-01-21 10:28:01 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2019-01-21 22:08:47 +1100 |
commit | 9c9c97e14fe190931f341876ad98213e1e1dc19f (patch) | |
tree | 079c12ccb4e1538928872d4bc5623727119291e2 /kex.h | |
parent | 2f6a9ddbbf6ca8623c53c323ff17fb6d68d66970 (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.h | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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 *); | |||
211 | int kex_kem_client(struct ssh *); | 211 | int kex_kem_client(struct ssh *); |
212 | int kex_kem_server(struct ssh *); | 212 | int kex_kem_server(struct ssh *); |
213 | 213 | ||
214 | int kex_dh_keypair(struct kex *); | ||
215 | int kex_dh_enc(struct kex *, const u_char *, size_t, struct sshbuf **, | ||
216 | struct sshbuf **); | ||
217 | int kex_dh_dec(struct kex *, const u_char *, size_t, struct sshbuf **); | ||
218 | |||
214 | int kex_c25519_keypair(struct kex *); | 219 | int kex_c25519_keypair(struct kex *); |
215 | int kex_c25519_enc(struct kex *, const u_char *, size_t, struct sshbuf **, | 220 | int 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 | ||
225 | int kex_dh_keygen(struct kex *); | 230 | int kex_dh_keygen(struct kex *); |
226 | int kex_dh_compute_key(struct kex *, BIGNUM *, struct sshbuf *); | 231 | int kex_dh_compute_key(struct kex *, BIGNUM *, struct sshbuf *); |
227 | int 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 | ||
231 | int kexgex_hash(int, const struct sshbuf *, const struct sshbuf *, | 233 | int 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, |