AnCH Framework 0.1
Another C++ Hack Framework
 
Loading...
Searching...
No Matches
anch::crypto::SHA2< O, B, W, R, I >::Context< Init > Struct Template Reference

#include <sha2.hpp>

+ Inheritance diagram for anch::crypto::SHA2< O, B, W, R, I >::Context< Init >:
+ Collaboration diagram for anch::crypto::SHA2< O, B, W, R, I >::Context< Init >:

Public Member Functions

 Context ()
 
void reset ()
 

Public Attributes

std::array< W, 8 > state
 
uint64_t size
 
uint8_t buffer [B]
 
std::array< uint8_t, O > digest
 

Detailed Description

template<std::size_t O, std::size_t B, typename W, uint32_t R, const std::array< W, 8 > & I>
template<const std::array< W, 8 > & Init>
struct anch::crypto::SHA2< O, B, W, R, I >::Context< Init >

SHA2 context

Author
Vincent Lachenal

Constructor & Destructor Documentation

◆ Context()

template<std::size_t O, std::size_t B, typename W, uint32_t R, const std::array< W, 8 > & I>
template<const std::array< W, 8 > & Init>
anch::crypto::SHA2< O, B, W, R, I >::Context< Init >::Context ( )

SHA2 Context constructor

Member Function Documentation

◆ reset()

template<std::size_t O, std::size_t B, typename W, uint32_t R, const std::array< W, 8 > & I>
template<const std::array< W, 8 > & Init>
void anch::crypto::SHA2< O, B, W, R, I >::Context< Init >::reset ( )

Initialize SHA2 context

Member Data Documentation

◆ buffer

template<std::size_t O, std::size_t B, typename W, uint32_t R, const std::array< W, 8 > & I>
template<const std::array< W, 8 > & Init>
uint8_t anch::crypto::SHA2< O, B, W, R, I >::Context< Init >::buffer[B]

Buffer

◆ digest

template<std::size_t O, std::size_t B, typename W, uint32_t R, const std::array< W, 8 > & I>
template<const std::array< W, 8 > & Init>
std::array<uint8_t,O> anch::crypto::SHA2< O, B, W, R, I >::Context< Init >::digest

Digest

◆ size

template<std::size_t O, std::size_t B, typename W, uint32_t R, const std::array< W, 8 > & I>
template<const std::array< W, 8 > & Init>
uint64_t anch::crypto::SHA2< O, B, W, R, I >::Context< Init >::size

Message size

◆ state

template<std::size_t O, std::size_t B, typename W, uint32_t R, const std::array< W, 8 > & I>
template<const std::array< W, 8 > & Init>
std::array<W,8> anch::crypto::SHA2< O, B, W, R, I >::Context< Init >::state

State


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