SHA-1 processor without external dependencies.
More...
#include <sha1.hpp>
|
| SHA1 () |
| construct empty object. More...
|
|
| SHA1 (const void *data, uint32_t size) |
| construct context and process data range More...
|
|
| SHA1 (const std::string &str) |
| construct context and process string More...
|
|
void | process (const void *data, uint32_t size) |
| process more data More...
|
|
void | process (const std::string &str) |
| process more data More...
|
|
void | finalize (void *digest) |
| finalize computation and output 20 byte (160 bit) digest More...
|
|
std::string | digest () |
| finalize computation and return 20 byte (160 bit) digest More...
|
|
std::string | digest_hex () |
| finalize computation and return 20 byte (160 bit) digest hex encoded More...
|
|
std::string | digest_hex_uc () |
| finalize computation and return 20 byte (160 bit) digest upper-case hex More...
|
|
SHA-1 processor without external dependencies.
Definition at line 28 of file sha1.hpp.
construct empty object.
Definition at line 118 of file sha1.cpp.
SHA1 |
( |
const void * |
data, |
|
|
uint32_t |
size |
|
) |
| |
construct context and process data range
Definition at line 128 of file sha1.cpp.
SHA1 |
( |
const std::string & |
str | ) |
|
|
explicit |
construct context and process string
Definition at line 132 of file sha1.cpp.
finalize computation and return 20 byte (160 bit) digest
Definition at line 204 of file sha1.cpp.
std::string digest_hex |
( |
| ) |
|
finalize computation and return 20 byte (160 bit) digest hex encoded
Definition at line 210 of file sha1.cpp.
std::string digest_hex_uc |
( |
| ) |
|
finalize computation and return 20 byte (160 bit) digest upper-case hex
Definition at line 216 of file sha1.cpp.
void finalize |
( |
void * |
digest | ) |
|
finalize computation and output 20 byte (160 bit) digest
Definition at line 174 of file sha1.cpp.
void process |
( |
const void * |
data, |
|
|
uint32_t |
size |
|
) |
| |
process more data
Definition at line 136 of file sha1.cpp.
void process |
( |
const std::string & |
str | ) |
|
process more data
Definition at line 170 of file sha1.cpp.
constexpr size_t kDigestLength |
|
static |
digest length in bytes
Definition at line 44 of file sha1.hpp.
The documentation for this class was generated from the following files: