NOVA User-Level Environment  Version testbox/changed-memory-timing-317-g320d8b5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Sha1 Class Reference

#include <sha.h>

Classes

struct  Context

Static Public Member Functions

static void init (struct Context *ctx)
static void hash (struct Context *ctx, unsigned char *value, unsigned count)
 Hash a count bytes from value.
static void finish (struct Context *ctx)
 Finish the operation.

Static Private Member Functions

static unsigned int get_w (unsigned char *value, unsigned int round)
static void process_block (struct Context *ctx)
 Process a single block of 512 bits.
static void ERROR (int result, bool value, const char *msg)

Member Function Documentation

static void Sha1::ERROR ( int  result,
bool  value,
const char *  msg 
)
inlinestaticprivate
void Sha1::finish ( struct Context ctx)
static

Finish the operation.

The output is available in ctx->hash.

unsigned int Sha1::get_w ( unsigned char *  value,
unsigned int  round 
)
inlinestaticprivate
void Sha1::hash ( struct Context ctx,
unsigned char *  value,
unsigned  count 
)
static

Hash a count bytes from value.

Parameters
ctx- store immediate values like unprocessed bytes and the overall length
value- a string to hash
count- the number of characters in value
void Sha1::init ( struct Context ctx)
static
Parameters
ctx- store immediate values like unprocessed bytes and the overall length
void Sha1::process_block ( struct Context ctx)
inlinestaticprivate

Process a single block of 512 bits.


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