Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
hash_impl.h
Go to the documentation of this file.
33 #define BE32(p) ((((p) & 0xFF) << 24) | (((p) & 0xFF00) << 8) | (((p) & 0xFF0000) >> 8) | (((p) & 0xFF000000) >> 24))
131 static void secp256k1_sha256_write(secp256k1_sha256 *hash, const unsigned char *data, size_t len) {
150 static const unsigned char pad[64] = {0x80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
165 static void secp256k1_hmac_sha256_initialize(secp256k1_hmac_sha256 *hash, const unsigned char *key, size_t keylen) {
193 static void secp256k1_hmac_sha256_write(secp256k1_hmac_sha256 *hash, const unsigned char *data, size_t size) {
206 static void secp256k1_rfc6979_hmac_sha256_initialize(secp256k1_rfc6979_hmac_sha256 *rng, const unsigned char *key, size_t keylen) {
236 static void secp256k1_rfc6979_hmac_sha256_generate(secp256k1_rfc6979_hmac_sha256 *rng, unsigned char *out, size_t outlen) {
Definition: hash.h:13
static void secp256k1_hmac_sha256_initialize(secp256k1_hmac_sha256 *hash, const unsigned char *key, size_t keylen)
Definition: hash_impl.h:165
static void secp256k1_sha256_write(secp256k1_sha256 *hash, const unsigned char *data, size_t len)
Definition: hash_impl.h:131
static void secp256k1_sha256_finalize(secp256k1_sha256 *hash, unsigned char *out32)
Definition: hash_impl.h:149
static void secp256k1_hmac_sha256_write(secp256k1_hmac_sha256 *hash, const unsigned char *data, size_t size)
Definition: hash_impl.h:193
static void secp256k1_rfc6979_hmac_sha256_generate(secp256k1_rfc6979_hmac_sha256 *rng, unsigned char *out, size_t outlen)
Definition: hash_impl.h:236
static void secp256k1_sha256_transform(uint32_t *s, const uint32_t *chunk)
Perform one SHA-256 transformation, processing 16 big endian 32-bit words.
Definition: hash_impl.h:49
static void secp256k1_rfc6979_hmac_sha256_initialize(secp256k1_rfc6979_hmac_sha256 *rng, const unsigned char *key, size_t keylen)
Definition: hash_impl.h:206
Definition: hash.h:31
Definition: hash.h:23
static void secp256k1_hmac_sha256_finalize(secp256k1_hmac_sha256 *hash, unsigned char *out32)
Definition: hash_impl.h:197
static void secp256k1_rfc6979_hmac_sha256_finalize(secp256k1_rfc6979_hmac_sha256 *rng)
Definition: hash_impl.h:267
static void secp256k1_sha256_initialize(secp256k1_sha256 *hash)
Definition: hash_impl.h:36