summaryrefslogtreecommitdiff
path: root/kex.h
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2019-01-21 10:29:56 +0000
committerDamien Miller <djm@mindrot.org>2019-01-21 23:13:02 +1100
commit92dda34e373832f34a1944e5d9ebbebb184dedc1 (patch)
tree8aa632912cb292c095c6eaedc7056e8d5ecfa0ba /kex.h
parentb72357217cbe510a3ae155307a7be6b9181f1d1b (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.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/kex.h b/kex.h
index de5e473e1..9b4c23670 100644
--- a/kex.h
+++ b/kex.h
@@ -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 **);
217int kex_dh_dec(struct kex *, const u_char *, size_t, struct sshbuf **); 217int kex_dh_dec(struct kex *, const u_char *, size_t, struct sshbuf **);
218 218
219int kex_ecdh_keypair(struct kex *);
220int kex_ecdh_enc(struct kex *, const u_char *, size_t, struct sshbuf **,
221 struct sshbuf **);
222int kex_ecdh_dec(struct kex *, const u_char *, size_t, struct sshbuf **);
223
219int kex_c25519_keypair(struct kex *); 224int kex_c25519_keypair(struct kex *);
220int kex_c25519_enc(struct kex *, const u_char *, size_t, struct sshbuf **, 225int 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
240int 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
245int kex_c25519_hash(int, const struct sshbuf *, const struct sshbuf *, 245int 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,