Does SHA256SIG0 use floating-point or vector registers?
No. These scalar crypto extension instructions use integer X registers.
SHA-256 σ0 function: ROTR(rs1,7) ^ ROTR(rs1,18) ^ SHR(rs1,3)
SHA256SIG0 uses opcode 0010011 (0x13), funct3 001, funct7 0001000. The rs1 field selects the source register, the 12-bit immediate provides the second operand, and rd selects the destination.
sha256sig0 implements the SHA-256 σ0 function (lowercase sigma) from Zknh: σ0(x) = ROTR(x, 7) ^ ROTR(x, 18) ^ SHR(x, 3). Reads rs1, computes σ0, writes to rd. Used in SHA-256 message schedule word expansion preprocessing.
SHA256SIG0 is a Zknh scalar cryptography instruction for SHA-256 transform. This page is checked against the official scalar crypto extension, avoiding confusion among round functions, key schedule steps, and operand sources.
Understand this scenario with real code like «sha256sig0 a0, a1».
Understand this scenario with real code like «sha256sig0 a0, a1».
No. These scalar crypto extension instructions use integer X registers.
No. It is a low-level step from AES, SHA, SM3, or SM4; software still combines instructions with the algorithm schedule, round constants, or round keys.