Sortix main manual
This manual documents Sortix main. You can instead view this document in the latest official manual.
NAME
X25519, X25519_keypair — Elliptic Curve Diffie-Hellman primitive based on Curve25519SYNOPSIS
#include <openssl/curve25519.h>X25519(uint8_t out_shared_key[X25519_KEY_LENGTH], const uint8_t private_key[X25519_KEY_LENGTH], const uint8_t peer_public_value[X25519_KEY_LENGTH]);
X25519_keypair(uint8_t out_public_value[X25519_KEY_LENGTH], uint8_t out_private_key[X25519_KEY_LENGTH]);
DESCRIPTION
Curve25519 is an elliptic curve over a prime field specified in RFC 7748. The prime field is defined by the prime number 2^255 - 19.=
{9}.= 32
bytes each.