plebble
|
#include <ripemd160.h>
Classes | |
class | hash_t |
struct | value_type |
Public Member Functions | |
ripemd160 () | |
void | write (const vector< unsigned char > &) |
void | write (const unsigned char *data, size_t len) |
void | write (const value_type &) |
void | write (const string &) |
void | write (const uint64_t &) |
void | write (const int64_t &) |
void | write (const uint32_t &) |
void | write (const int32_t &) |
void | write (bool) |
void | write (const double &) |
void | finalize (unsigned char hash[output_size]) |
void | finalize (value_type &) |
void | reset () |
Static Public Member Functions | |
static pair< ko, value_type > | digest_file (const string &file) |
static value_type | digest (const vector< unsigned char > &buf) |
static hash_t | hash (byte[] msg) |
Static Public Attributes | |
static constexpr size_t | output_size = 20 |
Private Member Functions | |
ripemd160 () | |
Static Private Member Functions | |
static void | compress (int[] state, byte[] blocks, int len) |
static int | f (int i, int x, int y, int z) |
Private Attributes | |
uint32_t | s [5] |
unsigned char | buf [64] |
uint64_t | bytes |
Static Private Attributes | |
static const unsigned char | pad [64] |
static final int | BLOCK_LEN = 64 |
static final int[] | KL = {0x00000000, 0x5A827999, 0x6ED9EBA1, 0x8F1BBCDC, 0xA953FD4E} |
static final int[] | KR = {0x50A28BE6, 0x5C4DD124, 0x6D703EF3, 0x7A6D76E9, 0x00000000} |
static final int[] | RL |
static final int[] | RR |
static final int[] | SL |
static final int[] | SR |
us::gov::crypto::ripemd160::ripemd160 | ( | ) |
|
inlineprivate |
|
inlinestaticprivate |
|
static |
|
static |
|
inlinestaticprivate |
void us::gov::crypto::ripemd160::finalize | ( | unsigned char | hash[output_size] | ) |
Referenced by us::gov::crypto::ripemd160::value_type::compute(), and us::gov::crypto::ec::keys::pub_t::compute_hash().
void us::gov::crypto::ripemd160::finalize | ( | value_type & | ) |
|
inlinestatic |
Computes and returns a 20-byte (160-bit) hash of the specified binary message. Each call will return a new byte array object instance.
msg | the message to compute the hash of |
NullPointerException | if the message is null
|
References BLOCK_LEN, compress(), and us.gov.crypto.ripemd160.hash_t.value.
Referenced by us::gov::socket::datagram.compute_hash(), us::gov::socket::datagram.compute_hash_payload(), and main.create_instance_h().
void us::gov::crypto::ripemd160::reset | ( | ) |
void us::gov::crypto::ripemd160::write | ( | bool | ) |
void us::gov::crypto::ripemd160::write | ( | const double & | ) |
void us::gov::crypto::ripemd160::write | ( | const int32_t & | ) |
void us::gov::crypto::ripemd160::write | ( | const int64_t & | ) |
void us::gov::crypto::ripemd160::write | ( | const string & | ) |
void us::gov::crypto::ripemd160::write | ( | const uint32_t & | ) |
void us::gov::crypto::ripemd160::write | ( | const uint64_t & | ) |
void us::gov::crypto::ripemd160::write | ( | const unsigned char * | data, |
size_t | len | ||
) |
void us::gov::crypto::ripemd160::write | ( | const value_type & | ) |
void us::gov::crypto::ripemd160::write | ( | const vector< unsigned char > & | ) |
Referenced by us::gov::crypto::ripemd160::value_type::compute(), us::gov::crypto::ec::keys::pub_t::compute_hash(), us::gov::engine::local_deltas::hash_data(), and us::gov::crypto::operator<<().
|
staticprivate |
Referenced by compress(), and hash().
|
private |
|
private |
|
staticprivate |
Referenced by compress().
|
staticprivate |
Referenced by compress().
|
staticconstexpr |
|
staticprivate |
|
staticprivate |
Referenced by compress().
|
staticprivate |
Referenced by compress().
|
private |
|
staticprivate |
Referenced by compress().
|
staticprivate |
Referenced by compress().