[#sha256_implementation-UseImplementation] = xref:sha256_implementation.adoc[sha256_implementation]::UseImplementation :relfileprefix: ../ :mrdocs: Bit flags selecting which CPU‐specific SHA‐256 implementations may be used. == Synopsis Declared in `<crypto/sha256.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- enum UseImplementation : uint8_t; ---- == Members [cols="1,4"] |=== | 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 [cols="1,4"] |=== | Name| Description | xref:SHA256AutoDetect.adoc[`::SHA256AutoDetect`] | Autodetect the best available SHA256 implementation. Returns the name of the implementation. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#