Changeset View
Changeset View
Standalone View
Standalone View
src/hash.cpp
// Copyright (c) 2013-2016 The Bitcoin Core developers | // Copyright (c) 2013-2016 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#include "hash.h" | #include <hash.h> | ||||
#include "crypto/common.h" | |||||
#include "crypto/hmac_sha512.h" | #include <crypto/common.h> | ||||
#include "pubkey.h" | #include <crypto/hmac_sha512.h> | ||||
#include <pubkey.h> | |||||
inline uint32_t ROTL32(uint32_t x, int8_t r) { | inline uint32_t ROTL32(uint32_t x, int8_t r) { | ||||
return (x << r) | (x >> (32 - r)); | return (x << r) | (x >> (32 - r)); | ||||
} | } | ||||
uint32_t MurmurHash3(uint32_t nHashSeed, | uint32_t MurmurHash3(uint32_t nHashSeed, | ||||
const std::vector<uint8_t> &vDataToHash) { | const std::vector<uint8_t> &vDataToHash) { | ||||
// The following is MurmurHash3 (x86_32), see | // The following is MurmurHash3 (x86_32), see | ||||
▲ Show 20 Lines • Show All 243 Lines • Show Last 20 Lines |