![]() |
Dash Core
0.12.2.1
P2P Digital Currency
|
#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/sph_luffa.h"
#include "crypto/sph_cubehash.h"
#include "crypto/sph_shavite.h"
#include "crypto/sph_simd.h"
#include "crypto/sph_echo.h"
#include <vector>
Go to the source code of this file.
Classes | |
class | CHash256 |
class | CHash160 |
class | CHashWriter |
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 > | |
uint256 | Hash (const T1 pbegin, const T1 pend) |
template<typename T1 , typename T2 > | |
uint256 | Hash (const T1 p1begin, const T1 p1end, const T2 p2begin, const T2 p2end) |
template<typename T1 , typename T2 , typename T3 > | |
uint256 | Hash (const T1 p1begin, const T1 p1end, const T2 p2begin, const T2 p2end, const T3 p3begin, const T3 p3end) |
template<typename T1 , typename T2 , typename T3 , typename T4 > | |
uint256 | Hash (const T1 p1begin, const T1 p1end, const T2 p2begin, const T2 p2end, const T3 p3begin, const T3 p3end, const T4 p4begin, const T4 p4end) |
template<typename T1 , typename T2 , typename T3 , typename T4 , typename T5 > | |
uint256 | Hash (const T1 p1begin, const T1 p1end, const T2 p2begin, const T2 p2end, const T3 p3begin, const T3 p3end, const T4 p4begin, const T4 p4end, const T5 p5begin, const T5 p5end) |
template<typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 > | |
uint256 | Hash (const T1 p1begin, const T1 p1end, const T2 p2begin, const T2 p2end, const T3 p3begin, const T3 p3end, const T4 p4begin, const T4 p4end, const T5 p5begin, const T5 p5end, const T6 p6begin, const T6 p6end) |
template<typename T1 > | |
uint160 | Hash160 (const T1 pbegin, const T1 pend) |
uint160 | Hash160 (const std::vector< unsigned char > &vch) |
template<unsigned int N> | |
uint160 | Hash160 (const prevector< N, unsigned char > &vch) |
template<typename T > | |
uint256 | SerializeHash (const T &obj, int nType=SER_GETHASH, int nVersion=PROTOCOL_VERSION) |
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 | HashX11 (const T1 pbegin, const T1 pend) |
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 |
GLOBAL sph_luffa512_context | z_luffa |
GLOBAL sph_cubehash512_context | z_cubehash |
GLOBAL sph_shavite512_context | z_shavite |
GLOBAL sph_simd512_context | z_simd |
GLOBAL sph_echo512_context | z_echo |
#define fillz | ( | ) |
void BIP32Hash | ( | const ChainCode & | chainCode, |
unsigned int | nChild, | ||
unsigned char | header, | ||
const unsigned char | data[32], | ||
unsigned char | output[64] | ||
) |
Definition at line 75 of file hash.cpp.
Referenced by CKey::Derive(), and CPubKey::Derive().
|
inline |
Compute the 256-bit hash of an object.
Definition at line 123 of file hash.h.
Referenced by CPartialMerkleTree::CalcHash(), CAlert::CheckSignature(), ComputeMerkleRootFromBranch(), DecodeBase58Check(), EncodeBase58Check(), CConnman::EndMessage(), CNetAddr::GetHash(), CAlert::GetHash(), CPubKey::GetHash(), CHDChain::GetSeedHash(), ProcessMessages(), CFlatDB< T >::Read(), CAddrDB::Read(), CBanDB::Read(), ReadKeyValue(), RelayAddress(), SendMessages(), CAlert::Sign(), CPartialMerkleTree::TraverseAndExtract(), CFlatDB< T >::Write(), CAddrDB::Write(), CBanDB::Write(), and CWalletDB::WriteKey().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Compute the 160-bit hash an object.
Definition at line 214 of file hash.h.
Referenced by CWallet::AddCScript(), CPubKey::GetID(), and Hash160().
|
inline |
|
inline |
Definition at line 283 of file hash.h.
Referenced by CBlockHeader::GetHash().
unsigned int MurmurHash3 | ( | unsigned int | nHashSeed, |
const std::vector< unsigned char > & | vDataToHash | ||
) |
Definition at line 16 of file hash.cpp.
Referenced by CBloomFilter::Hash().
uint256 SerializeHash | ( | const T & | obj, |
int | nType = SER_GETHASH , |
||
int | nVersion = PROTOCOL_VERSION |
||
) |
Compute the 256-bit hash of an object's serialization.
Definition at line 270 of file hash.h.
Referenced by CTxOut::GetHash(), CMutableTransaction::GetHash(), and CTransaction::UpdateHash().
GLOBAL sph_cubehash512_context z_cubehash |
GLOBAL sph_echo512_context z_echo |
GLOBAL sph_groestl512_context z_groestl |
GLOBAL sph_jh512_context z_jh |
GLOBAL sph_keccak512_context z_keccak |
GLOBAL sph_luffa512_context z_luffa |
GLOBAL sph_shavite512_context z_shavite |
GLOBAL sph_simd512_context z_simd |