Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

sha256.h File Reference
#include <stdint.h>
#include <stdlib.h>
#include <string>
+ Include dependency graph for sha256.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CSHA256
 A hasher class for SHA-256. More...
 

Functions

std::string SHA256AutoDetect ()
 Autodetect the best available SHA256 implementation. More...
 
void SHA256D64 (unsigned char *output, const unsigned char *input, size_t blocks)
 Compute multiple double-SHA256's of 64-byte blobs. More...
 

Function Documentation

◆ SHA256AutoDetect()

std::string SHA256AutoDetect ( )

Autodetect the best available SHA256 implementation.

Returns the name of the implementation.

Definition at line 573 of file sha256.cpp.

References sha256_shani::Transform(), sha256d64_shani::Transform_2way(), sha256d64_sse41::Transform_4way(), and sha256d64_avx2::Transform_8way().

Referenced by AppInitSanityChecks(), and main().

◆ SHA256D64()

void SHA256D64 ( unsigned char *  output,
const unsigned char *  input,
size_t  blocks 
)

Compute multiple double-SHA256's of 64-byte blobs.

output: pointer to a blocks*32 byte output buffer input: pointer to a blocks*64 byte input buffer blocks: the number of hashes to compute.

Definition at line 698 of file sha256.cpp.

Referenced by ComputeMerkleRoot(), and HASH_SHA256D64_1024().

Released under the MIT license