cardano::KesSeed struct

Utilities for the Seed of a KES scheme.

Public static variables

static size_t size constexpr
Byte representation size of a KesSeed.

Public static functions

static void split(std::span<uint8_t, KesSeed::size> seed, std::span<uint8_t, KesSeed::size> left_split, std::span<uint8_t, KesSeed::size> right_split)

Function documentation

static void cardano::KesSeed::split(std::span<uint8_t, KesSeed::size> seed, std::span<uint8_t, KesSeed::size> left_split, std::span<uint8_t, KesSeed::size> right_split)

Parameters
seed 32 byte seed (size enforced at compile time).
left_split Span of 32 bytes to be filled with the first split.
right_split Span of 32 bytes to be filled with the second split.
Returns A pair of 32 byte secure arrays.

Function that takes as input a mutable span, splits it into two, and overwrites the input with zeros.