Skip to content

rlpx::crypto::Ecdh

#include <ecdh.hpp>

Public Classes

Name
struct KeyPair

Public Functions

Name
Ecdh() =delete
CryptoResult< SharedSecret > compute_shared_secret(gsl::span< const uint8_t, kPublicKeySize > public_key, gsl::span< const uint8_t, kPrivateKeySize > private_key)
CryptoResult< KeyPair > generate_ephemeral_keypair()
bool verify_public_key(gsl::span< const uint8_t, kPublicKeySize > public_key)

Public Functions Documentation

function Ecdh

Ecdh() =delete

function compute_shared_secret

static CryptoResult< SharedSecret > compute_shared_secret(
    gsl::span< const uint8_t, kPublicKeySize > public_key,
    gsl::span< const uint8_t, kPrivateKeySize > private_key
)

function generate_ephemeral_keypair

static CryptoResult< KeyPair > generate_ephemeral_keypair()

function verify_public_key

static bool verify_public_key(
    gsl::span< const uint8_t, kPublicKeySize > public_key
)

Updated on 2026-04-13 at 23:22:46 -0700