HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_SHA256 Class Reference

#include <UT_SHA256.h>

Public Member Functions

 UT_SHA256 ()
 

Static Public Member Functions

static void hash (const UT_WorkBuffer &input, UT_String &output)
 
static void hash (const std::initializer_list< UT_StringView > &inputs, UT_StringHolder &output)
 

Protected Member Functions

void init ()
 
void update (const unsigned char *message, unsigned int len)
 
void finalize (unsigned char *digest)
 
void transform (const unsigned char *message, unsigned int block_nb)
 

Protected Attributes

unsigned int myTotalLength
 
unsigned int myLength
 
unsigned char myBlock [SHA256_BLOCK_SIZE *2]
 
uint32 myH [8]
 

Static Protected Attributes

static const unsigned int SHA256_BLOCK_SIZE = 64
 
static const unsigned int DIGEST_SIZE = 32
 

Detailed Description

Definition at line 19 of file UT_SHA256.h.

Constructor & Destructor Documentation

UT_SHA256::UT_SHA256 ( )
inline

Definition at line 22 of file UT_SHA256.h.

Member Function Documentation

void UT_SHA256::finalize ( unsigned char *  digest)
protected
static void UT_SHA256::hash ( const UT_WorkBuffer input,
UT_String output 
)
static
static void UT_SHA256::hash ( const std::initializer_list< UT_StringView > &  inputs,
UT_StringHolder output 
)
static
void UT_SHA256::init ( )
protected
void UT_SHA256::transform ( const unsigned char *  message,
unsigned int  block_nb 
)
protected
void UT_SHA256::update ( const unsigned char *  message,
unsigned int  len 
)
protected

Member Data Documentation

const unsigned int UT_SHA256::DIGEST_SIZE = 32
staticprotected

Definition at line 36 of file UT_SHA256.h.

unsigned char UT_SHA256::myBlock[SHA256_BLOCK_SIZE *2]
protected

Definition at line 40 of file UT_SHA256.h.

uint32 UT_SHA256::myH[8]
protected

Definition at line 41 of file UT_SHA256.h.

unsigned int UT_SHA256::myLength
protected

Definition at line 39 of file UT_SHA256.h.

unsigned int UT_SHA256::myTotalLength
protected

Definition at line 38 of file UT_SHA256.h.

const unsigned int UT_SHA256::SHA256_BLOCK_SIZE = 64
staticprotected

Definition at line 35 of file UT_SHA256.h.


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