diff options
author | djm@openbsd.org <djm@openbsd.org> | 2019-01-21 10:24:09 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2019-01-21 22:08:04 +1100 |
commit | 2f6a9ddbbf6ca8623c53c323ff17fb6d68d66970 (patch) | |
tree | 2fe3ee7094f85e9f834d69c5d609a1b9fe886930 /kex.h | |
parent | dfd591618cdf2c96727ac0eb65f89cf54af0d97e (diff) |
upstream: use KEM API for vanilla c25519 KEX
OpenBSD-Commit-ID: 38d937b85ff770886379dd66a8f32ab0c1c35c1f
Diffstat (limited to 'kex.h')
-rw-r--r-- | kex.h | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 *); | |||
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_c25519_keypair(struct kex *); | ||
215 | int kex_c25519_enc(struct kex *, const u_char *, size_t, struct sshbuf **, | ||
216 | struct sshbuf **); | ||
217 | int kex_c25519_dec(struct kex *, const u_char *, size_t, struct sshbuf **); | ||
218 | |||
214 | int kex_kem_sntrup4591761x25519_keypair(struct kex *); | 219 | int kex_kem_sntrup4591761x25519_keypair(struct kex *); |
215 | int kex_kem_sntrup4591761x25519_enc(struct kex *, const u_char *, size_t, | 220 | int kex_kem_sntrup4591761x25519_enc(struct kex *, const u_char *, size_t, |
216 | struct sshbuf **, struct sshbuf **); | 221 | struct sshbuf **, struct sshbuf **); |