Skip to content

rlpx::crypto::Kdf

#include <kdf.hpp>

Public Classes

Name
struct DerivedKeys

Public Functions

Name
Kdf() =delete
CryptoResult< ByteBuffer > derive(ByteView shared_secret, size_t key_data_len, ByteView shared_info ={})
CryptoResult< AesKey > derive_aes_key(ByteView shared_secret, ByteView info ={})
CryptoResult< MacKey > derive_mac_key(ByteView shared_secret, ByteView info ={})
CryptoResult< DerivedKeys > derive_keys(ByteView shared_secret, ByteView info ={})

Public Functions Documentation

function Kdf

Kdf() =delete

function derive

static CryptoResult< ByteBuffer > derive(
    ByteView shared_secret,
    size_t key_data_len,
    ByteView shared_info ={}
)

< Prevents infinite loop on pathological inputs

function derive_aes_key

static CryptoResult< AesKey > derive_aes_key(
    ByteView shared_secret,
    ByteView info ={}
)

function derive_mac_key

static CryptoResult< MacKey > derive_mac_key(
    ByteView shared_secret,
    ByteView info ={}
)

function derive_keys

static CryptoResult< DerivedKeys > derive_keys(
    ByteView shared_secret,
    ByteView info ={}
)

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