Bitcoin Core 28.99.0
P2P Digital Currency
Namespaces | Functions
sha256.cpp File Reference
#include <bitcoin-build-config.h>
#include <crypto/sha256.h>
#include <crypto/common.h>
#include <algorithm>
#include <cassert>
#include <cstring>
#include <compat/cpuid.h>
Include dependency graph for sha256.cpp:

Go to the source code of this file.

Namespaces

namespace  sha256d64_sse41
 
namespace  sha256d64_avx2
 
namespace  sha256d64_x86_shani
 
namespace  sha256_x86_shani
 
namespace  sha256_arm_shani
 
namespace  sha256d64_arm_shani
 
namespace  sha256
 Internal SHA-256 implementation.
 

Functions

void sha256d64_sse41::Transform_4way (unsigned char *out, const unsigned char *in)
 
void sha256d64_avx2::Transform_8way (unsigned char *out, const unsigned char *in)
 
void sha256d64_x86_shani::Transform_2way (unsigned char *out, const unsigned char *in)
 
void sha256_x86_shani::Transform (uint32_t *s, const unsigned char *chunk, size_t blocks)
 
void sha256_arm_shani::Transform (uint32_t *s, const unsigned char *chunk, size_t blocks)
 
void sha256d64_arm_shani::Transform_2way (unsigned char *out, const unsigned char *in)
 
std::string SHA256AutoDetect (sha256_implementation::UseImplementation use_implementation)
 Autodetect the best available SHA256 implementation. More...
 
void SHA256D64 (unsigned char *out, const unsigned char *in, size_t blocks)
 Compute multiple double-SHA256's of 64-byte blobs. More...
 

Function Documentation

◆ SHA256AutoDetect()

std::string SHA256AutoDetect ( sha256_implementation::UseImplementation  use_implementation = sha256_implementation::USE_ALL)

Autodetect the best available SHA256 implementation.

Returns the name of the implementation.

Definition at line 587 of file sha256.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ 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 751 of file sha256.cpp.

Here is the caller graph for this function: