Lines Matching refs:CURVE25519_KEY_SIZE
14 CURVE25519_KEY_SIZE = 32 enumerator
20 void curve25519_generic(u8 out[CURVE25519_KEY_SIZE],
21 const u8 scalar[CURVE25519_KEY_SIZE],
22 const u8 point[CURVE25519_KEY_SIZE]);
24 void curve25519_arch(u8 out[CURVE25519_KEY_SIZE],
25 const u8 scalar[CURVE25519_KEY_SIZE],
26 const u8 point[CURVE25519_KEY_SIZE]);
28 void curve25519_base_arch(u8 pub[CURVE25519_KEY_SIZE],
29 const u8 secret[CURVE25519_KEY_SIZE]);
34 bool __must_check curve25519(u8 mypublic[CURVE25519_KEY_SIZE], in curve25519() argument
35 const u8 secret[CURVE25519_KEY_SIZE], in curve25519() argument
36 const u8 basepoint[CURVE25519_KEY_SIZE]) in curve25519() argument
43 CURVE25519_KEY_SIZE); in curve25519()
47 __must_check curve25519_generate_public(u8 pub[CURVE25519_KEY_SIZE], in curve25519_generate_public() argument
48 const u8 secret[CURVE25519_KEY_SIZE]) in curve25519_generate_public() argument
51 CURVE25519_KEY_SIZE))) in curve25519_generate_public()
58 return crypto_memneq(pub, curve25519_null_point, CURVE25519_KEY_SIZE); in curve25519_generate_public()
61 static inline void curve25519_clamp_secret(u8 secret[CURVE25519_KEY_SIZE]) in curve25519_clamp_secret() argument
67 static inline void curve25519_generate_secret(u8 secret[CURVE25519_KEY_SIZE]) in curve25519_generate_secret() argument
69 get_random_bytes_wait(secret, CURVE25519_KEY_SIZE); in curve25519_generate_secret()