Bit flags selecting which CPU‐specific SHA‐256 implementations may be used.

Synopsis

Declared in <crypto/sha256.h>

enum UseImplementation : uint8_t;

Members

Name

Description

STANDARD

Portable C++ implementation only.

USE_SSE4

Allow the SSE4‐accelerated implementation.

USE_AVX2

Allow the AVX2‐accelerated implementation.

USE_SHANI

Allow the SHA‐NI‐accelerated implementation.

USE_SSE4_AND_AVX2

Allow both SSE4 and AVX2.

USE_SSE4_AND_SHANI

Allow both SSE4 and SHA‐NI.

USE_ALL

Allow every accelerated implementation.

Non-Member Functions

Name

Description

::SHA256AutoDetect

Autodetect the best available SHA256 implementation. Returns the name of the implementation.

Created with MrDocs