|
wired
libc-free QUIC/HTTP3 SDK in C for x86_64-linux
|
RFC 7748 X25519: scalar multiplication on Curve25519 for ECDHE. More...
#include "common/platform/sys/syscall.h"Go to the source code of this file.
Macros | |
| #define | X25519_LEN 32 |
| X25519 scalar / u-coordinate length in bytes. | |
Functions | |
| int | wired_x25519 (u8 out[X25519_LEN], const u8 scalar[X25519_LEN], const u8 point[X25519_LEN]) |
| out = scalar * point on Curve25519. | |
| int | wired_x25519_base (u8 out[X25519_LEN], const u8 scalar[X25519_LEN]) |
| out = scalar * base point (9). | |
RFC 7748 X25519: scalar multiplication on Curve25519 for ECDHE.
out = scalar * point on Curve25519.
scalar and point are 32-byte little-endian; out is the 32-byte little-endian u-coordinate.
| out | receives the u-coordinate of the product |
| scalar | the 32-byte little-endian scalar |
| point | the 32-byte little-endian u-coordinate to multiply |