diff options
author | djm@openbsd.org <djm@openbsd.org> | 2019-01-21 10:29:56 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2019-01-21 23:13:02 +1100 |
commit | 92dda34e373832f34a1944e5d9ebbebb184dedc1 (patch) | |
tree | 8aa632912cb292c095c6eaedc7056e8d5ecfa0ba /kex.h | |
parent | b72357217cbe510a3ae155307a7be6b9181f1d1b (diff) |
upstream: use KEM API for vanilla ECDH
from markus@ ok djm@
OpenBSD-Commit-ID: 6fbff96339a929835536b5730585d1d6057a352c
Diffstat (limited to 'kex.h')
-rw-r--r-- | kex.h | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: kex.h,v 1.101 2019/01/21 10:28:01 djm Exp $ */ | 1 | /* $OpenBSD: kex.h,v 1.102 2019/01/21 10:29:56 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. |
@@ -216,6 +216,11 @@ int kex_dh_enc(struct kex *, const u_char *, size_t, struct sshbuf **, | |||
216 | struct sshbuf **); | 216 | struct sshbuf **); |
217 | int kex_dh_dec(struct kex *, const u_char *, size_t, struct sshbuf **); | 217 | int kex_dh_dec(struct kex *, const u_char *, size_t, struct sshbuf **); |
218 | 218 | ||
219 | int kex_ecdh_keypair(struct kex *); | ||
220 | int kex_ecdh_enc(struct kex *, const u_char *, size_t, struct sshbuf **, | ||
221 | struct sshbuf **); | ||
222 | int kex_ecdh_dec(struct kex *, const u_char *, size_t, struct sshbuf **); | ||
223 | |||
219 | int kex_c25519_keypair(struct kex *); | 224 | int kex_c25519_keypair(struct kex *); |
220 | int kex_c25519_enc(struct kex *, const u_char *, size_t, struct sshbuf **, | 225 | int kex_c25519_enc(struct kex *, const u_char *, size_t, struct sshbuf **, |
221 | struct sshbuf **); | 226 | struct sshbuf **); |
@@ -237,11 +242,6 @@ int kexgex_hash(int, const struct sshbuf *, const struct sshbuf *, | |||
237 | const BIGNUM *, const u_char *, size_t, | 242 | const BIGNUM *, const u_char *, size_t, |
238 | u_char *, size_t *); | 243 | u_char *, size_t *); |
239 | 244 | ||
240 | int kex_ecdh_hash(int, const EC_GROUP *, | ||
241 | const struct sshbuf *, const struct sshbuf *, | ||
242 | const u_char *, size_t, const u_char *, size_t, const u_char *, size_t, | ||
243 | const EC_POINT *, const EC_POINT *, const BIGNUM *, u_char *, size_t *); | ||
244 | |||
245 | int kex_c25519_hash(int, const struct sshbuf *, const struct sshbuf *, | 245 | int kex_c25519_hash(int, const struct sshbuf *, const struct sshbuf *, |
246 | const u_char *, size_t, const u_char *, size_t, | 246 | const u_char *, size_t, const u_char *, size_t, |
247 | const u_char *, size_t, const u_char *, size_t, const u_char *, size_t, | 247 | const u_char *, size_t, const u_char *, size_t, const u_char *, size_t, |