tcpflow
1.6.1
About: tcpflow is a TCP/IP packet demultiplexer that captures data transmitted as part of TCP connections (flows), and stores the data in a way that is convenient for protocol analysis and debugging.
![]() ![]() |
#include <hash_t.h>
Public Member Functions | |
hash__ () | |
hash__ (const uint8_t *provided) | |
const uint8_t * | final () const |
const char * | hexdigest (char *hexbuf, size_t bufsize) const |
std::string | hexdigest () const |
bool | operator< (const hash__ &s2) const |
bool | operator== (const hash__ &s2) const |
Static Public Member Functions | |
static size_t | size () |
static unsigned int | hex2int (char ch) |
static unsigned int | hex2int (char ch0, char ch1) |
static hash__ | fromhex (const std::string &hexbuf) |
static int | hex2bin (uint8_t *binbuf, size_t binbuf_size, const char *hex) |
static const hash__ * | new_from_hex (const char *hex) |
Public Attributes | |
uint8_t | digest [SIZE] |
Friends | |
std::ostream & | operator<< (std::ostream &os, const hash__ &s2) |
For reasons that defy explanation (at the moment), this is required.
Definition at line 79 of file hash_t.h.
Referenced by hash__< md, SIZE >::new_from_hex().
|
inline |
Definition at line 81 of file hash_t.h.
References hash__< md, SIZE >::size().
Definition at line 84 of file hash_t.h.
References hash__< md, SIZE >::digest.
|
inlinestatic |
Definition at line 97 of file hash_t.h.
References hash__< md, SIZE >::digest, hash__< md, SIZE >::hex2int(), hexbuf(), and hash__< md, SIZE >::size().
|
inlinestatic |
Convert a hex representation to binary, and return the number of bits converted.
binbuf | output buffer |
binbuf_size | size of output buffer in bytes. |
hex | input buffer (in hex) |
Definition at line 127 of file hash_t.h.
References hash__< md, SIZE >::hex2int().
Referenced by hash__< md, SIZE >::new_from_hex().
|
inlinestatic |
Definition at line 88 of file hash_t.h.
Referenced by hash__< md, SIZE >::fromhex(), hash__< md, SIZE >::hex2bin(), and hash__< md, SIZE >::hex2int().
|
inlinestatic |
Definition at line 94 of file hash_t.h.
References hash__< md, SIZE >::hex2int().
|
inline |
|
inline |
Definition at line 105 of file hash_t.h.
References hexbuf().
Referenced by be13::plugin::process_sbuf().
|
inlinestatic |
Definition at line 138 of file hash_t.h.
References hash__< md, SIZE >::digest, hash__< md, SIZE >::hash__(), and hash__< md, SIZE >::hex2bin().
|
inline |
Definition at line 146 of file hash_t.h.
References hash__< md, SIZE >::digest.
|
inline |
Definition at line 152 of file hash_t.h.
References hash__< md, SIZE >::digest.
|
inlinestatic |
Definition at line 76 of file hash_t.h.
Referenced by hash__< md, SIZE >::fromhex(), and hash__< md, SIZE >::hash__().
|
friend |
Definition at line 75 of file hash_t.h.
Referenced by hash_generator__< md, SIZE >::final(), hash__< md, SIZE >::final(), hash__< md, SIZE >::fromhex(), hash__< md, SIZE >::new_from_hex(), hash__< md, SIZE >::operator<(), and hash__< md, SIZE >::operator==().