Searched refs:CURVE25519_SIZE (Results 1 – 3 of 3) sorted by relevance
/external/openssh/ |
D | kexc25519.c | 43 extern int crypto_scalarmult_curve25519(u_char a[CURVE25519_SIZE], 44 const u_char b[CURVE25519_SIZE], const u_char c[CURVE25519_SIZE]) 45 __attribute__((__bounded__(__minbytes__, 1, CURVE25519_SIZE))) 46 __attribute__((__bounded__(__minbytes__, 2, CURVE25519_SIZE))) 47 __attribute__((__bounded__(__minbytes__, 3, CURVE25519_SIZE))); 50 kexc25519_keygen(u_char key[CURVE25519_SIZE], u_char pub[CURVE25519_SIZE]) in kexc25519_keygen() argument 52 static const u_char basepoint[CURVE25519_SIZE] = {9}; in kexc25519_keygen() 54 arc4random_buf(key, CURVE25519_SIZE); in kexc25519_keygen() 59 kexc25519_shared_key_ext(const u_char key[CURVE25519_SIZE], in kexc25519_shared_key_ext() argument 60 const u_char pub[CURVE25519_SIZE], struct sshbuf *out, int raw) in kexc25519_shared_key_ext() argument [all …]
|
D | kex.h | 72 #define CURVE25519_SIZE 32 macro 169 u_char c25519_client_key[CURVE25519_SIZE]; /* 25519 + KEM */ 170 u_char c25519_client_pubkey[CURVE25519_SIZE]; /* 25519 */ 237 void kexc25519_keygen(u_char key[CURVE25519_SIZE], u_char pub[CURVE25519_SIZE]) 238 __attribute__((__bounded__(__minbytes__, 1, CURVE25519_SIZE))) 239 __attribute__((__bounded__(__minbytes__, 2, CURVE25519_SIZE))); 240 int kexc25519_shared_key(const u_char key[CURVE25519_SIZE], 241 const u_char pub[CURVE25519_SIZE], struct sshbuf *out) 242 __attribute__((__bounded__(__minbytes__, 1, CURVE25519_SIZE))) 243 __attribute__((__bounded__(__minbytes__, 2, CURVE25519_SIZE))); [all …]
|
D | kexsntrup4591761x25519.c | 50 need = crypto_kem_sntrup4591761_PUBLICKEYBYTES + CURVE25519_SIZE; in kex_kem_sntrup4591761x25519_keypair() 61 dump_digest("client public key c25519:", cp, CURVE25519_SIZE); in kex_kem_sntrup4591761x25519_keypair() 79 u_char server_key[CURVE25519_SIZE]; in kex_kem_sntrup4591761x25519_enc() 88 need = crypto_kem_sntrup4591761_PUBLICKEYBYTES + CURVE25519_SIZE; in kex_kem_sntrup4591761x25519_enc() 99 CURVE25519_SIZE); in kex_kem_sntrup4591761x25519_enc() 115 need = crypto_kem_sntrup4591761_CIPHERTEXTBYTES + CURVE25519_SIZE; in kex_kem_sntrup4591761x25519_enc() 130 dump_digest("server public key 25519:", server_pub, CURVE25519_SIZE); in kex_kem_sntrup4591761x25519_enc() 170 need = crypto_kem_sntrup4591761_CIPHERTEXTBYTES + CURVE25519_SIZE; in kex_kem_sntrup4591761x25519_dec() 180 dump_digest("server public key c25519:", server_pub, CURVE25519_SIZE); in kex_kem_sntrup4591761x25519_dec()
|