#include <sha.h>
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.
|
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:
- alexb/apps/remoteconfig/sha.h
- alexb/apps/remoteconfig/sha.cc