nil::crypto3::hashes::detail::basic_sha2_policy< CipherVersion > Struct Template Reference

#include <sha2_policy.hpp>

+ Collaboration diagram for nil::crypto3::hashes::detail::basic_sha2_policy< CipherVersion >:

Public Types

typedef block::shacal2< cipher_versionblock_cipher_type
 
typedef block_cipher_type::key_type block_type
 
typedef stream_endian::big_octet_big_bit digest_endian
 
typedef block_cipher_type::block_type state_type
 
typedef block_cipher_type::word_type word_type
 

Static Public Attributes

constexpr static const std::size_t block_bits = block_cipher_type::key_bits
 
constexpr static const std::size_t block_words = block_cipher_type::key_words
 
constexpr static const std::size_t cipher_version = CipherVersion
 
constexpr static const std::size_t length_bits = word_bits * 2
 
constexpr static const std::size_t state_bits = block_cipher_type::block_bits
 
constexpr static const std::size_t state_words = block_cipher_type::block_words
 
constexpr static const std::size_t word_bits = block_cipher_type::word_bits
 

Member Typedef Documentation

◆ block_cipher_type

template<std::size_t CipherVersion>
typedef block::shacal2<cipher_version> nil::crypto3::hashes::detail::basic_sha2_policy< CipherVersion >::block_cipher_type

◆ block_type

template<std::size_t CipherVersion>
typedef block_cipher_type::key_type nil::crypto3::hashes::detail::basic_sha2_policy< CipherVersion >::block_type

◆ digest_endian

template<std::size_t CipherVersion>
typedef stream_endian::big_octet_big_bit nil::crypto3::hashes::detail::basic_sha2_policy< CipherVersion >::digest_endian

◆ state_type

template<std::size_t CipherVersion>
typedef block_cipher_type::block_type nil::crypto3::hashes::detail::basic_sha2_policy< CipherVersion >::state_type

◆ word_type

template<std::size_t CipherVersion>
typedef block_cipher_type::word_type nil::crypto3::hashes::detail::basic_sha2_policy< CipherVersion >::word_type

Member Data Documentation

◆ block_bits

template<std::size_t CipherVersion>
constexpr static const std::size_t nil::crypto3::hashes::detail::basic_sha2_policy< CipherVersion >::block_bits = block_cipher_type::key_bits
staticconstexpr

◆ block_words

template<std::size_t CipherVersion>
constexpr static const std::size_t nil::crypto3::hashes::detail::basic_sha2_policy< CipherVersion >::block_words = block_cipher_type::key_words
staticconstexpr

◆ cipher_version

template<std::size_t CipherVersion>
constexpr static const std::size_t nil::crypto3::hashes::detail::basic_sha2_policy< CipherVersion >::cipher_version = CipherVersion
staticconstexpr

◆ length_bits

template<std::size_t CipherVersion>
constexpr static const std::size_t nil::crypto3::hashes::detail::basic_sha2_policy< CipherVersion >::length_bits = word_bits * 2
staticconstexpr

◆ state_bits

template<std::size_t CipherVersion>
constexpr static const std::size_t nil::crypto3::hashes::detail::basic_sha2_policy< CipherVersion >::state_bits = block_cipher_type::block_bits
staticconstexpr

◆ state_words

template<std::size_t CipherVersion>
constexpr static const std::size_t nil::crypto3::hashes::detail::basic_sha2_policy< CipherVersion >::state_words = block_cipher_type::block_words
staticconstexpr

◆ word_bits

template<std::size_t CipherVersion>
constexpr static const std::size_t nil::crypto3::hashes::detail::basic_sha2_policy< CipherVersion >::word_bits = block_cipher_type::word_bits
staticconstexpr

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