A SHA instruction set is a set of extensions to the ARM, RISC-V and x86 instruction set architecture which support hardware acceleration of the Secure Hash Algorithm (SHA) family.
SHA-1 and SHA-256 instructions appeared as optional features (FEAT_SHA1 and FEAT_SHA256) in the Arm V8.0 architecture introduced in 2011. [1] The instructions are:
SHA-512 and SHA-3 instructions appeared as optional features (FEAT_SHA512 and FEAT_SHA3) in the Arm V8.2 architecture. [2] The instruction are:
A scalable vector extension (SVE) version of the SHA-3 instructions appeared as an optional feature (FEAT_SVE_SHA3) in the Arm V9.0 architecture. [3]
SHA2 instructions are part of the Zknh extension part of the RISC-V Cryptography Extensions Volume I: Scalar & Entropy Source Instructions ratified in November 2021 [4] .
The original SSE-based extensions added four instructions supporting SHA-1 and three for SHA-256 and were specified in 2013 by Intel. [5] Instructions for SHA-512 was introduced in Arrow Lake and Lunar Lake in 2024. .
SHA1RNDS4, SHA1NEXTE, SHA1MSG1, SHA1MSG2SHA256RNDS2, SHA256MSG1, SHA256MSG2The newer SHA-512 instruction set comprises AVX-based versions of the original SHA instruction set marked with a V prefix and these three new AVX-based instructions for SHA-512:
VSHA512RNDS2, VSHA512MSG1, VSHA512MSG2All recent AMD processors support the original SHA instruction set:
The following Intel processors support the original SHA instruction set:
The following Intel processors will support the newer SHA-512 instruction set: