summaryrefslogtreecommitdiff
path: root/kex.h
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2019-01-21 10:24:09 +0000
committerDamien Miller <djm@mindrot.org>2019-01-21 22:08:04 +1100
commit2f6a9ddbbf6ca8623c53c323ff17fb6d68d66970 (patch)
tree2fe3ee7094f85e9f834d69c5d609a1b9fe886930 /kex.h
parentdfd591618cdf2c96727ac0eb65f89cf54af0d97e (diff)
upstream: use KEM API for vanilla c25519 KEX
OpenBSD-Commit-ID: 38d937b85ff770886379dd66a8f32ab0c1c35c1f
Diffstat (limited to 'kex.h')
-rw-r--r--kex.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/kex.h b/kex.h
index 258a64712..2eec2e04f 100644
--- a/kex.h
+++ b/kex.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: kex.h,v 1.99 2019/01/21 10:20:12 djm Exp $ */ 1/* $OpenBSD: kex.h,v 1.100 2019/01/21 10:24:09 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 *);
211int kex_kem_client(struct ssh *); 211int kex_kem_client(struct ssh *);
212int kex_kem_server(struct ssh *); 212int kex_kem_server(struct ssh *);
213 213
214int kex_c25519_keypair(struct kex *);
215int kex_c25519_enc(struct kex *, const u_char *, size_t, struct sshbuf **,
216 struct sshbuf **);
217int kex_c25519_dec(struct kex *, const u_char *, size_t, struct sshbuf **);
218
214int kex_kem_sntrup4591761x25519_keypair(struct kex *); 219int kex_kem_sntrup4591761x25519_keypair(struct kex *);
215int kex_kem_sntrup4591761x25519_enc(struct kex *, const u_char *, size_t, 220int kex_kem_sntrup4591761x25519_enc(struct kex *, const u_char *, size_t,
216 struct sshbuf **, struct sshbuf **); 221 struct sshbuf **, struct sshbuf **);