#include <SHA1.h>
Definition at line 44 of file SHA1.h.
◆ digest_type
typedef unsigned int(& sha1::digest_type)[5] |
◆ sha1()
◆ get_digest()
Definition at line 169 of file SHA1.h.
171 std::size_t bit_count = byte_count_*8;
179 if (block_byte_index_ > 56) {
181 while (block_byte_index_ != 0) {
186 while (block_byte_index_ < 56) {
190 while (block_byte_index_ < 56) {
201 process_byte(
static_cast<unsigned char>((bit_count>>24) & 0xFF));
202 process_byte(
static_cast<unsigned char>((bit_count>>16) & 0xFF));
203 process_byte(
static_cast<unsigned char>((bit_count>>8 ) & 0xFF));
204 process_byte(
static_cast<unsigned char>((bit_count) & 0xFF));
void process_byte(unsigned char byte)
References process_byte().
Referenced by GetFileSHA1().
◆ process_block()
void sha1::process_block |
( |
void const * |
bytes_begin, |
|
|
void const * |
bytes_end |
|
) |
| |
|
inline |
◆ process_byte()
void sha1::process_byte |
( |
unsigned char |
byte | ) |
|
|
inline |
Definition at line 92 of file SHA1.h.
94 block_[block_byte_index_++] = byte;
96 if (block_byte_index_ == 64) {
97 block_byte_index_ = 0;
void process_block(void const *bytes_begin, void const *bytes_end)
References process_block().
Referenced by get_digest(), and process_block().
◆ process_bytes()
void sha1::process_bytes |
( |
void const * |
buffer, |
|
|
std::size_t |
byte_count |
|
) |
| |
|
inline |
◆ reset()
Definition at line 80 of file SHA1.h.
88 block_byte_index_ = 0;
Referenced by sha1().
The documentation for this class was generated from the following file: