Signet Forge 0.1.0
C++20 Parquet library with AI-native extensions
DEMO
Loading...
Searching...
No Matches
hkdf.hpp File Reference

HKDF key derivation (RFC 5869) using HMAC-SHA256. More...

#include "signet/crypto/sha256.hpp"
#include <algorithm>
#include <array>
#include <cstddef>
#include <cstdint>
#include <cstring>
#include <vector>

Go to the source code of this file.

Namespaces

namespace  signet
 
namespace  signet::forge
 
namespace  signet::forge::crypto
 
namespace  signet::forge::crypto::detail
 
namespace  signet::forge::crypto::detail::hkdf
 

Functions

std::array< uint8_t, 32 > signet::forge::crypto::detail::hkdf::hmac_sha256 (const uint8_t *key, size_t key_size, const uint8_t *data, size_t data_size)
 HMAC-SHA256 (RFC 2104): keyed hash for HKDF.
 
std::array< uint8_t, 32 > signet::forge::crypto::hkdf_extract (const uint8_t *salt, size_t salt_size, const uint8_t *ikm, size_t ikm_size)
 HKDF-Extract (RFC 5869 §2.2): Extract a pseudorandom key from input keying material.
 
bool signet::forge::crypto::hkdf_expand (const std::array< uint8_t, 32 > &prk, const uint8_t *info, size_t info_size, uint8_t *output, size_t output_size)
 HKDF-Expand (RFC 5869 §2.3): Expand PRK to output keying material.
 
bool signet::forge::crypto::hkdf (const uint8_t *salt, size_t salt_size, const uint8_t *ikm, size_t ikm_size, const uint8_t *info, size_t info_size, uint8_t *output, size_t output_size)
 HKDF one-shot (RFC 5869): Extract-then-Expand in one call.
 

Detailed Description

HKDF key derivation (RFC 5869) using HMAC-SHA256.

Definition in file hkdf.hpp.