#include <limits.h>#include "sha1.cpp"Go to the source code of this file.
Classes | |
| struct | sha1_ctx |
Defines | |
| #define | SHA1_BLOCK_SIZE 64 |
| #define | SHA1_DIGEST_SIZE 20 |
| #define | SHA2_GOOD 0 |
| #define | SHA2_BAD 1 |
Functions | |
| void | sha1_compile (sha1_ctx ctx[1]) |
| void | sha1_begin (sha1_ctx ctx[1]) |
| void | sha1_hash (const unsigned char data[], unsigned int len, sha1_ctx ctx[1]) |
| void | sha1_end (unsigned char hval[], sha1_ctx ctx[1]) |
| void | sha1 (unsigned char hval[], const unsigned char data[], unsigned int len) |
| #define SHA1_BLOCK_SIZE 64 |
| #define SHA1_DIGEST_SIZE 20 |
| #define SHA2_BAD 1 |
| #define SHA2_GOOD 0 |
| void sha1 | ( | unsigned char | hval[], | |
| const unsigned char | data[], | |||
| unsigned int | len | |||
| ) |
Definition at line 206 of file sha1.cpp.
References sha1_begin(), sha1_end(), and sha1_hash().
Referenced by vmsHash::Hash_SHA1().
| void sha1_begin | ( | sha1_ctx | ctx[1] | ) |
Definition at line 127 of file sha1.cpp.
References sha1_ctx::count, and sha1_ctx::hash.
Referenced by vmsHash::Hash_SHA1(), and sha1().
| void sha1_compile | ( | sha1_ctx | ctx[1] | ) |
Definition at line 82 of file sha1.cpp.
References a, b, c, ch, simple_client::e, sha1_ctx::hash, maj, parity, rnd, rotl32, SHA1_BLOCK_SIZE, swap_b32, and sha1_ctx::wbuf.
Referenced by sha1_end(), and sha1_hash().
| void sha1_end | ( | unsigned char | hval[], | |
| sha1_ctx | ctx[1] | |||
| ) |
Definition at line 167 of file sha1.cpp.
References bits, sha1_ctx::count, sha1_ctx::hash, mask, SHA1_BLOCK_SIZE, sha1_compile(), SHA1_DIGEST_SIZE, SHA1_MASK, swap_b32, and sha1_ctx::wbuf.
Referenced by vmsHash::Hash_SHA1(), and sha1().
| void sha1_hash | ( | const unsigned char | data[], | |
| unsigned int | len, | |||
| sha1_ctx | ctx[1] | |||
| ) |
Definition at line 137 of file sha1.cpp.
References sha1_ctx::count, pos(), SHA1_BLOCK_SIZE, sha1_compile(), SHA1_MASK, and sha1_ctx::wbuf.
Referenced by vmsHash::Hash_SHA1(), main(), and sha1().
1.5.6