Changeset View
Changeset View
Standalone View
Standalone View
src/crypto/ripemd160.h
// Copyright (c) 2014-2016 The Bitcoin Core developers | // Copyright (c) 2014-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. | ||||
#ifndef BITCOIN_CRYPTO_RIPEMD160_H | #ifndef BITCOIN_CRYPTO_RIPEMD160_H | ||||
#define BITCOIN_CRYPTO_RIPEMD160_H | #define BITCOIN_CRYPTO_RIPEMD160_H | ||||
#include <stdint.h> | #include <cstdint> | ||||
#include <stdlib.h> | #include <cstdlib> | ||||
/** A hasher class for RIPEMD-160. */ | /** A hasher class for RIPEMD-160. */ | ||||
class CRIPEMD160 { | class CRIPEMD160 { | ||||
private: | private: | ||||
uint32_t s[5]; | uint32_t s[5]; | ||||
unsigned char buf[64]; | unsigned char buf[64]; | ||||
uint64_t bytes; | uint64_t bytes; | ||||
Show All 10 Lines |