wired
libc-free QUIC/HTTP3 SDK in C for x86_64-linux
Loading...
Searching...
No Matches
x25519.h
Go to the documentation of this file.
1#ifndef TLS_X25519_H
2#define TLS_X25519_H
3
5
8
10#define X25519_LEN 32
11
20 u8 out[X25519_LEN],
21 const u8 scalar[X25519_LEN],
22 const u8 point[X25519_LEN]);
23
28int wired_x25519_base(u8 out[X25519_LEN], const u8 scalar[X25519_LEN]);
29
30#endif
Linux direct syscalls.
unsigned char u8
unsigned 8-bit integer / byte
Definition types.h:18
int wired_x25519_base(u8 out[X25519_LEN], const u8 scalar[X25519_LEN])
out = scalar * base point (9).
#define X25519_LEN
X25519 scalar / u-coordinate length in bytes.
Definition x25519.h:10
int wired_x25519(u8 out[X25519_LEN], const u8 scalar[X25519_LEN], const u8 point[X25519_LEN])
out = scalar * point on Curve25519.