#include <sha2.hpp>
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 |
SHA2 context
anch::crypto::SHA2< O, B, W, R, I >::Context< Init >::Context | ( | ) |
void anch::crypto::SHA2< O, B, W, R, I >::Context< Init >::reset | ( | ) |
Initialize SHA2 context
uint8_t anch::crypto::SHA2< O, B, W, R, I >::Context< Init >::buffer[B] |
Buffer
std::array<uint8_t,O> anch::crypto::SHA2< O, B, W, R, I >::Context< Init >::digest |
Digest
uint64_t anch::crypto::SHA2< O, B, W, R, I >::Context< Init >::size |
Message size
std::array<W,8> anch::crypto::SHA2< O, B, W, R, I >::Context< Init >::state |
State