nil::crypto3::kdf::detail::prf_tls_functions< Version, MessageAuthenticationCode1, MessageAuthenticationCode2 > Struct Template Reference

#include <prf_tls_functions.hpp>

+ Inheritance diagram for nil::crypto3::kdf::detail::prf_tls_functions< Version, MessageAuthenticationCode1, MessageAuthenticationCode2 >:
+ Collaboration diagram for nil::crypto3::kdf::detail::prf_tls_functions< Version, MessageAuthenticationCode1, MessageAuthenticationCode2 >:

Public Types

typedef policy_type::mac_type1 mac_type1
 
typedef policy_type::mac_type2 mac_type2
 
typedef prf_tls_policy< Version, MessageAuthenticationCode1, MessageAuthenticationCode2 > policy_type
 

Static Public Member Functions

template<typename MessageAuthenticationCode >
static void p_hash (uint8_t out[], size_t out_len, MessageAuthenticationCode &mac, const uint8_t salt[], size_t salt_len)
 

Static Public Attributes

constexpr static const std::size_t version = policy_type::version
 

Member Typedef Documentation

◆ mac_type1

template<std::size_t Version, typename MessageAuthenticationCode1 , typename MessageAuthenticationCode2 >
typedef policy_type::mac_type1 nil::crypto3::kdf::detail::prf_tls_functions< Version, MessageAuthenticationCode1, MessageAuthenticationCode2 >::mac_type1

◆ mac_type2

template<std::size_t Version, typename MessageAuthenticationCode1 , typename MessageAuthenticationCode2 >
typedef policy_type::mac_type2 nil::crypto3::kdf::detail::prf_tls_functions< Version, MessageAuthenticationCode1, MessageAuthenticationCode2 >::mac_type2

◆ policy_type

template<std::size_t Version, typename MessageAuthenticationCode1 , typename MessageAuthenticationCode2 >
typedef prf_tls_policy<Version, MessageAuthenticationCode1, MessageAuthenticationCode2> nil::crypto3::kdf::detail::prf_tls_functions< Version, MessageAuthenticationCode1, MessageAuthenticationCode2 >::policy_type

Member Function Documentation

◆ p_hash()

template<std::size_t Version, typename MessageAuthenticationCode1 , typename MessageAuthenticationCode2 >
template<typename MessageAuthenticationCode >
static void nil::crypto3::kdf::detail::prf_tls_functions< Version, MessageAuthenticationCode1, MessageAuthenticationCode2 >::p_hash ( uint8_t  out[],
size_t  out_len,
MessageAuthenticationCode &  mac,
const uint8_t  salt[],
size_t  salt_len 
)
inlinestatic

Member Data Documentation

◆ version

template<std::size_t Version, typename MessageAuthenticationCode1 , typename MessageAuthenticationCode2 >
constexpr static const std::size_t nil::crypto3::kdf::detail::prf_tls_functions< Version, MessageAuthenticationCode1, MessageAuthenticationCode2 >::version = policy_type::version
staticconstexpr

The documentation for this struct was generated from the following file: