diff options
Diffstat (limited to 'kex.h')
-rw-r--r-- | kex.h | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: kex.h,v 1.103 2019/01/21 10:33:49 djm Exp $ */ | 1 | /* $OpenBSD: kex.h,v 1.104 2019/01/21 10:35: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,24 +211,24 @@ int kex_kem_client(struct ssh *); | |||
211 | int kex_kem_server(struct ssh *); | 211 | int kex_kem_server(struct ssh *); |
212 | 212 | ||
213 | int kex_dh_keypair(struct kex *); | 213 | int kex_dh_keypair(struct kex *); |
214 | int kex_dh_enc(struct kex *, const u_char *, size_t, struct sshbuf **, | 214 | int kex_dh_enc(struct kex *, const struct sshbuf *, struct sshbuf **, |
215 | struct sshbuf **); | 215 | struct sshbuf **); |
216 | int kex_dh_dec(struct kex *, const u_char *, size_t, struct sshbuf **); | 216 | int kex_dh_dec(struct kex *, const struct sshbuf *, struct sshbuf **); |
217 | 217 | ||
218 | int kex_ecdh_keypair(struct kex *); | 218 | int kex_ecdh_keypair(struct kex *); |
219 | int kex_ecdh_enc(struct kex *, const u_char *, size_t, struct sshbuf **, | 219 | int kex_ecdh_enc(struct kex *, const struct sshbuf *, struct sshbuf **, |
220 | struct sshbuf **); | 220 | struct sshbuf **); |
221 | int kex_ecdh_dec(struct kex *, const u_char *, size_t, struct sshbuf **); | 221 | int kex_ecdh_dec(struct kex *, const struct sshbuf *, struct sshbuf **); |
222 | 222 | ||
223 | int kex_c25519_keypair(struct kex *); | 223 | int kex_c25519_keypair(struct kex *); |
224 | int kex_c25519_enc(struct kex *, const u_char *, size_t, struct sshbuf **, | 224 | int kex_c25519_enc(struct kex *, const struct sshbuf *, struct sshbuf **, |
225 | struct sshbuf **); | 225 | struct sshbuf **); |
226 | int kex_c25519_dec(struct kex *, const u_char *, size_t, struct sshbuf **); | 226 | int kex_c25519_dec(struct kex *, const struct sshbuf *, struct sshbuf **); |
227 | 227 | ||
228 | int kex_kem_sntrup4591761x25519_keypair(struct kex *); | 228 | int kex_kem_sntrup4591761x25519_keypair(struct kex *); |
229 | int kex_kem_sntrup4591761x25519_enc(struct kex *, const u_char *, size_t, | 229 | int kex_kem_sntrup4591761x25519_enc(struct kex *, const struct sshbuf *, |
230 | struct sshbuf **, struct sshbuf **); | 230 | struct sshbuf **, struct sshbuf **); |
231 | int kex_kem_sntrup4591761x25519_dec(struct kex *, const u_char *, size_t, | 231 | int kex_kem_sntrup4591761x25519_dec(struct kex *, const struct sshbuf *, |
232 | struct sshbuf **); | 232 | struct sshbuf **); |
233 | 233 | ||
234 | int kex_dh_keygen(struct kex *); | 234 | int kex_dh_keygen(struct kex *); |
@@ -243,8 +243,8 @@ int kexgex_hash(int, const struct sshbuf *, const struct sshbuf *, | |||
243 | 243 | ||
244 | int kex_c25519_hash(int, const struct sshbuf *, const struct sshbuf *, | 244 | int kex_c25519_hash(int, const struct sshbuf *, const struct sshbuf *, |
245 | const u_char *, size_t, const u_char *, size_t, | 245 | const u_char *, size_t, const u_char *, size_t, |
246 | const u_char *, size_t, const u_char *, size_t, const u_char *, size_t, | 246 | const u_char *, size_t, const struct sshbuf *, const struct sshbuf *, |
247 | const u_char *, size_t, u_char *, size_t *); | 247 | const struct sshbuf *, u_char *, size_t *); |
248 | 248 | ||
249 | void kexc25519_keygen(u_char key[CURVE25519_SIZE], u_char pub[CURVE25519_SIZE]) | 249 | void kexc25519_keygen(u_char key[CURVE25519_SIZE], u_char pub[CURVE25519_SIZE]) |
250 | __attribute__((__bounded__(__minbytes__, 1, CURVE25519_SIZE))) | 250 | __attribute__((__bounded__(__minbytes__, 1, CURVE25519_SIZE))) |