tls_x25519.h 395 B

123456789101112
  1. /* X25519 (RFC 7748) for the ring-3 TLS client.
  2. * Field arithmetic in 8 x 32-bit limbs (no __int128 on i586). */
  3. #ifndef TLS_X25519_H
  4. #define TLS_X25519_H
  5. /* out = scalar * point (all 32-byte little-endian; scalar is clamped). */
  6. void x25519(unsigned char out[32], const unsigned char scalar[32],
  7. const unsigned char point[32]);
  8. extern const unsigned char x25519_base_point[32];
  9. #endif