![]() |
PIVX Core
5.6.99
P2P Digital Currency
|
#include "arith_uint256.h"#include "crypto/ripemd160.h"#include "crypto/sha256.h"#include "prevector.h"#include "serialize.h"#include "uint256.h"#include "version.h"#include "crypto/sph_blake.h"#include "crypto/sph_bmw.h"#include "crypto/sph_groestl.h"#include "crypto/sph_jh.h"#include "crypto/sph_keccak.h"#include "crypto/sph_skein.h"#include "crypto/sha512.h"#include <iomanip>#include <sstream>#include <vector>#include <sodium.h>Go to the source code of this file.
Classes | |
| class | CHash256 |
| A hasher class for Bitcoin's 256-bit hash (double SHA-256). More... | |
| class | CHash512 |
| class | CHash160 |
| A hasher class for Bitcoin's 160-bit hash (SHA-256 + RIPEMD-160). More... | |
| class | CHashWriter |
| A writer stream (for serialization) that computes a 256-bit hash. More... | |
| class | CHashVerifier< Source > |
| Reads data from an underlying stream, while hashing the read data. More... | |
| class | CBLAKE2bWriter |
| A writer stream (for serialization) that computes a 256-bit BLAKE2b hash. More... | |
Macros | |
| #define | GLOBAL extern |
| #define | fillz() |
| #define | ZBLAKE (memcpy(&ctx_blake, &z_blake, sizeof(z_blake))) |
| #define | ZBMW (memcpy(&ctx_bmw, &z_bmw, sizeof(z_bmw))) |
| #define | ZGROESTL (memcpy(&ctx_groestl, &z_groestl, sizeof(z_groestl))) |
| #define | ZJH (memcpy(&ctx_jh, &z_jh, sizeof(z_jh))) |
| #define | ZKECCAK (memcpy(&ctx_keccak, &z_keccak, sizeof(z_keccak))) |
| #define | ZSKEIN (memcpy(&ctx_skein, &z_skein, sizeof(z_skein))) |
Typedefs | |
| typedef uint256 | ChainCode |
Functions | |
| template<typename T1 > | |
| uint512 | Hash512 (const T1 pbegin, const T1 pend) |
| Compute the 512-bit hash of an object. More... | |
| template<typename T1 , typename T2 > | |
| uint512 | Hash512 (const T1 p1begin, const T1 p1end, const T2 p2begin, const T2 p2end) |
| template<typename T1 > | |
| uint256 | Hash (const T1 pbegin, const T1 pend) |
| Compute the 256-bit hash of an object. More... | |
| template<typename T1 , typename T2 > | |
| uint256 | Hash (const T1 p1begin, const T1 p1end, const T2 p2begin, const T2 p2end) |
| Compute the 256-bit hash of the concatenation of two objects. More... | |
| template<typename T1 > | |
| uint160 | Hash160 (const T1 pbegin, const T1 pend) |
| Compute the 160-bit hash an object. More... | |
| uint160 | Hash160 (const std::vector< unsigned char > &vch) |
| Compute the 160-bit hash of a vector. More... | |
| template<unsigned int N> | |
| uint160 | Hash160 (const prevector< N, unsigned char > &vch) |
| Compute the 160-bit hash of a vector. More... | |
| template<typename T > | |
| uint256 | SerializeHash (const T &obj, int nType=SER_GETHASH, int nVersion=PROTOCOL_VERSION) |
| Compute the 256-bit hash of an object's serialization. More... | |
| unsigned int | MurmurHash3 (unsigned int nHashSeed, const std::vector< unsigned char > &vDataToHash) |
| void | BIP32Hash (const ChainCode chainCode, unsigned int nChild, unsigned char header, const unsigned char data[32], unsigned char output[64]) |
| template<typename T1 > | |
| uint256 | HashQuark (const T1 pbegin, const T1 pend) |
| void | scrypt_hash (const char *pass, unsigned int pLen, const char *salt, unsigned int sLen, char *output, unsigned int N, unsigned int r, unsigned int p, unsigned int dkLen) |
Variables | |
| GLOBAL sph_blake512_context | z_blake |
| GLOBAL sph_bmw512_context | z_bmw |
| GLOBAL sph_groestl512_context | z_groestl |
| GLOBAL sph_jh512_context | z_jh |
| GLOBAL sph_keccak512_context | z_keccak |
| GLOBAL sph_skein512_context | z_skein |
| #define fillz | ( | ) |
| void BIP32Hash | ( | const ChainCode | chainCode, |
| unsigned int | nChild, | ||
| unsigned char | header, | ||
| const unsigned char | data[32], | ||
| unsigned char | output[64] | ||
| ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| unsigned int MurmurHash3 | ( | unsigned int | nHashSeed, |
| const std::vector< unsigned char > & | vDataToHash | ||
| ) |
| void scrypt_hash | ( | const char * | pass, |
| unsigned int | pLen, | ||
| const char * | salt, | ||
| unsigned int | sLen, | ||
| char * | output, | ||
| unsigned int | N, | ||
| unsigned int | r, | ||
| unsigned int | p, | ||
| unsigned int | dkLen | ||
| ) |
| uint256 SerializeHash | ( | const T & | obj, |
| int | nType = SER_GETHASH, |
||
| int | nVersion = PROTOCOL_VERSION |
||
| ) |
| GLOBAL sph_groestl512_context z_groestl |
| GLOBAL sph_jh512_context z_jh |
| GLOBAL sph_keccak512_context z_keccak |