Changeset View
Changeset View
Standalone View
Standalone View
src/secp256k1/src/hash_impl.h
/********************************************************************** | /********************************************************************** | ||||
* Copyright (c) 2014 Pieter Wuille * | * Copyright (c) 2014 Pieter Wuille * | ||||
* 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 _SECP256K1_HASH_IMPL_H_ | #ifndef SECP256K1_HASH_IMPL_H | ||||
#define _SECP256K1_HASH_IMPL_H_ | #define SECP256K1_HASH_IMPL_H | ||||
#include "hash.h" | #include "hash.h" | ||||
#include <stdlib.h> | #include <stdlib.h> | ||||
#include <stdint.h> | #include <stdint.h> | ||||
#include <string.h> | #include <string.h> | ||||
#define Ch(x,y,z) ((z) ^ ((x) & ((y) ^ (z)))) | #define Ch(x,y,z) ((z) ^ ((x) & ((y) ^ (z)))) | ||||
▲ Show 20 Lines • Show All 256 Lines • ▼ Show 20 Lines | |||||
#undef Round | #undef Round | ||||
#undef sigma1 | #undef sigma1 | ||||
#undef sigma0 | #undef sigma0 | ||||
#undef Sigma1 | #undef Sigma1 | ||||
#undef Sigma0 | #undef Sigma0 | ||||
#undef Maj | #undef Maj | ||||
#undef Ch | #undef Ch | ||||
#endif | #endif /* SECP256K1_HASH_IMPL_H */ |