Skip to content

rlpx::crypto::Hmac

#include <hmac.hpp>

Public Functions

Name
Hmac() =delete
CryptoResult< ByteBuffer > compute(ByteView key, ByteView data)
CryptoResult< MacDigest > compute_mac(ByteView key, ByteView data)
bool verify(ByteView key, ByteView data, ByteView expected_mac)

Public Functions Documentation

function Hmac

Hmac() =delete

function compute

static CryptoResult< ByteBuffer > compute(
    ByteView key,
    ByteView data
)

function compute_mac

static CryptoResult< MacDigest > compute_mac(
    ByteView key,
    ByteView data
)

function verify

static bool verify(
    ByteView key,
    ByteView data,
    ByteView expected_mac
)

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