Searched refs:CURVE25519_SIZE (Results 1 - 4 of 4) sorted by relevance

/external/openssh/
H A Dkexc25519.c47 extern int crypto_scalarmult_curve25519(u_char a[CURVE25519_SIZE],
48 const u_char b[CURVE25519_SIZE], const u_char c[CURVE25519_SIZE])
49 __attribute__((__bounded__(__minbytes__, 1, CURVE25519_SIZE)))
50 __attribute__((__bounded__(__minbytes__, 2, CURVE25519_SIZE)))
51 __attribute__((__bounded__(__minbytes__, 3, CURVE25519_SIZE)));
54 kexc25519_keygen(u_char key[CURVE25519_SIZE], u_char pub[CURVE25519_SIZE])
56 static const u_char basepoint[CURVE25519_SIZE] = {9};
58 arc4random_buf(key, CURVE25519_SIZE);
[all...]
H A Dkex.h70 #define CURVE25519_SIZE 32 macro
165 u_char c25519_client_key[CURVE25519_SIZE]; /* 25519 */
166 u_char c25519_client_pubkey[CURVE25519_SIZE]; /* 25519 */
220 void kexc25519_keygen(u_char key[CURVE25519_SIZE], u_char pub[CURVE25519_SIZE])
221 __attribute__((__bounded__(__minbytes__, 1, CURVE25519_SIZE)))
222 __attribute__((__bounded__(__minbytes__, 2, CURVE25519_SIZE)));
223 int kexc25519_shared_key(const u_char key[CURVE25519_SIZE],
224 const u_char pub[CURVE25519_SIZE], struct sshbuf *out)
225 __attribute__((__bounded__(__minbytes__, 1, CURVE25519_SIZE)))
[all...]
H A Dkexc25519s.c62 u_char server_key[CURVE25519_SIZE];
64 u_char server_pubkey[CURVE25519_SIZE];
91 if (pklen != CURVE25519_SIZE) {
96 dump_digest("client public key:", client_pubkey, CURVE25519_SIZE);
H A Dkexc25519c.c112 if (pklen != CURVE25519_SIZE) {
118 dump_digest("server public key:", server_pubkey, CURVE25519_SIZE);

Completed in 91 milliseconds