Symbol: CURVE25519_SIZE
crypto/openssh/kex.h
180
u_char c25519_client_key[CURVE25519_SIZE]; /* 25519 + KEM */
crypto/openssh/kex.h
181
u_char c25519_client_pubkey[CURVE25519_SIZE]; /* 25519 */
crypto/openssh/kex.h
259
void kexc25519_keygen(u_char key[CURVE25519_SIZE], u_char pub[CURVE25519_SIZE])
crypto/openssh/kex.h
260
__attribute__((__bounded__(__minbytes__, 1, CURVE25519_SIZE)))
crypto/openssh/kex.h
261
__attribute__((__bounded__(__minbytes__, 2, CURVE25519_SIZE)));
crypto/openssh/kex.h
262
int kexc25519_shared_key(const u_char key[CURVE25519_SIZE],
crypto/openssh/kex.h
263
const u_char pub[CURVE25519_SIZE], struct sshbuf *out)
crypto/openssh/kex.h
264
__attribute__((__bounded__(__minbytes__, 1, CURVE25519_SIZE)))
crypto/openssh/kex.h
265
__attribute__((__bounded__(__minbytes__, 2, CURVE25519_SIZE)));
crypto/openssh/kex.h
266
int kexc25519_shared_key_ext(const u_char key[CURVE25519_SIZE],
crypto/openssh/kex.h
267
const u_char pub[CURVE25519_SIZE], struct sshbuf *out, int)
crypto/openssh/kex.h
268
__attribute__((__bounded__(__minbytes__, 1, CURVE25519_SIZE)))
crypto/openssh/kex.h
269
__attribute__((__bounded__(__minbytes__, 2, CURVE25519_SIZE)));
crypto/openssh/kexc25519.c
100
if ((r = sshbuf_reserve(buf, CURVE25519_SIZE, &cp)) != 0)
crypto/openssh/kexc25519.c
104
dump_digest("client public key c25519:", cp, CURVE25519_SIZE);
crypto/openssh/kexc25519.c
121
u_char server_key[CURVE25519_SIZE];
crypto/openssh/kexc25519.c
127
if (sshbuf_len(client_blob) != CURVE25519_SIZE) {
crypto/openssh/kexc25519.c
133
dump_digest("client public key 25519:", client_pub, CURVE25519_SIZE);
crypto/openssh/kexc25519.c
140
if ((r = sshbuf_reserve(server_blob, CURVE25519_SIZE, &server_pub)) != 0)
crypto/openssh/kexc25519.c
151
dump_digest("server public key 25519:", server_pub, CURVE25519_SIZE);
crypto/openssh/kexc25519.c
175
if (sshbuf_len(server_blob) != CURVE25519_SIZE) {
crypto/openssh/kexc25519.c
181
dump_digest("server public key c25519:", server_pub, CURVE25519_SIZE);
crypto/openssh/kexc25519.c
43
extern int crypto_scalarmult_curve25519(u_char a[CURVE25519_SIZE],
crypto/openssh/kexc25519.c
44
const u_char b[CURVE25519_SIZE], const u_char c[CURVE25519_SIZE])
crypto/openssh/kexc25519.c
45
__attribute__((__bounded__(__minbytes__, 1, CURVE25519_SIZE)))
crypto/openssh/kexc25519.c
46
__attribute__((__bounded__(__minbytes__, 2, CURVE25519_SIZE)))
crypto/openssh/kexc25519.c
47
__attribute__((__bounded__(__minbytes__, 3, CURVE25519_SIZE)));
crypto/openssh/kexc25519.c
50
kexc25519_keygen(u_char key[CURVE25519_SIZE], u_char pub[CURVE25519_SIZE])
crypto/openssh/kexc25519.c
52
static const u_char basepoint[CURVE25519_SIZE] = {9};
crypto/openssh/kexc25519.c
54
arc4random_buf(key, CURVE25519_SIZE);
crypto/openssh/kexc25519.c
59
kexc25519_shared_key_ext(const u_char key[CURVE25519_SIZE],
crypto/openssh/kexc25519.c
60
const u_char pub[CURVE25519_SIZE], struct sshbuf *out, int raw)
crypto/openssh/kexc25519.c
62
u_char shared_key[CURVE25519_SIZE];
crypto/openssh/kexc25519.c
63
u_char zero[CURVE25519_SIZE];
crypto/openssh/kexc25519.c
69
explicit_bzero(zero, CURVE25519_SIZE);
crypto/openssh/kexc25519.c
70
if (timingsafe_bcmp(zero, shared_key, CURVE25519_SIZE) == 0)
crypto/openssh/kexc25519.c
74
dump_digest("shared secret", shared_key, CURVE25519_SIZE);
crypto/openssh/kexc25519.c
77
r = sshbuf_put(out, shared_key, CURVE25519_SIZE);
crypto/openssh/kexc25519.c
79
r = sshbuf_put_bignum2_bytes(out, shared_key, CURVE25519_SIZE);
crypto/openssh/kexc25519.c
80
explicit_bzero(shared_key, CURVE25519_SIZE);
crypto/openssh/kexc25519.c
85
kexc25519_shared_key(const u_char key[CURVE25519_SIZE],
crypto/openssh/kexc25519.c
86
const u_char pub[CURVE25519_SIZE], struct sshbuf *out)
crypto/openssh/kexsntrup761x25519.c
101
CURVE25519_SIZE);
crypto/openssh/kexsntrup761x25519.c
117
need = crypto_kem_sntrup761_CIPHERTEXTBYTES + CURVE25519_SIZE;
crypto/openssh/kexsntrup761x25519.c
132
dump_digest("server public key 25519:", server_pub, CURVE25519_SIZE);
crypto/openssh/kexsntrup761x25519.c
172
need = crypto_kem_sntrup761_CIPHERTEXTBYTES + CURVE25519_SIZE;
crypto/openssh/kexsntrup761x25519.c
182
dump_digest("server public key c25519:", server_pub, CURVE25519_SIZE);
crypto/openssh/kexsntrup761x25519.c
52
need = crypto_kem_sntrup761_PUBLICKEYBYTES + CURVE25519_SIZE;
crypto/openssh/kexsntrup761x25519.c
63
dump_digest("client public key c25519:", cp, CURVE25519_SIZE);
crypto/openssh/kexsntrup761x25519.c
81
u_char server_key[CURVE25519_SIZE];
crypto/openssh/kexsntrup761x25519.c
90
need = crypto_kem_sntrup761_PUBLICKEYBYTES + CURVE25519_SIZE;