libressl_d.openssl.curve25519

Curve25519.

Curve25519 is an elliptic curve.

Public Imports

libressl_d.openssl.opensslconf
public import libressl_d.openssl.opensslconf;
Undocumented in source.

Members

Functions

X25519
int X25519(core.stdc.stdint.uint8_t* out_shared_key, const(core.stdc.stdint.uint8_t)* private_key, const(core.stdc.stdint.uint8_t)* peers_public_value)

X25519 writes a shared key to |out_shared_key| that is calculated from the given private key and the peer's public value. It returns one on success and zero on error.

X25519_keypair
void X25519_keypair(core.stdc.stdint.uint8_t* out_public_value, core.stdc.stdint.uint8_t* out_private_key)

X25519_keypair sets |out_public_value| and |out_private_key| to a freshly generated, public/private key pair.

Manifest constants

X25519_KEY_LENGTH
enum X25519_KEY_LENGTH;

X25519.

See Also

Meta