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
4
#include "
common/platform/sys/syscall.h
"
5
8
10
#define X25519_LEN 32
11
19
int
wired_x25519
(
20
u8
out[
X25519_LEN
],
21
const
u8
scalar[
X25519_LEN
],
22
const
u8
point[
X25519_LEN
]);
23
28
int
wired_x25519_base
(
u8
out[
X25519_LEN
],
const
u8
scalar[
X25519_LEN
]);
29
30
#endif
syscall.h
Linux direct syscalls.
u8
unsigned char u8
unsigned 8-bit integer / byte
Definition
types.h:18
wired_x25519_base
int wired_x25519_base(u8 out[X25519_LEN], const u8 scalar[X25519_LEN])
out = scalar * base point (9).
X25519_LEN
#define X25519_LEN
X25519 scalar / u-coordinate length in bytes.
Definition
x25519.h:10
wired_x25519
int wired_x25519(u8 out[X25519_LEN], const u8 scalar[X25519_LEN], const u8 point[X25519_LEN])
out = scalar * point on Curve25519.
tls
handshake
core
tls
x25519.h
Generated by
1.16.1