core::arch::riscv64

Function sha512sig1

Source
pub unsafe fn sha512sig1(rs1: u64) -> u64
🔬This is a nightly-only experimental API. (riscv_ext_intrinsics #114544)
Available on RISC-V RV64 and target feature zknh only.
Expand description

Implements the Sigma1 transformation function as used in the SHA2-512 hash function [49] (Section 4.1.3).

This instruction is supported for the RV64 base architecture. It implements the Sigma1 transform of the SHA2-512 hash function. [49]. This instruction must always be implemented such that its execution latency does not depend on the data being operated on.

Source: RISC-V Cryptography Extensions Volume I: Scalar & Entropy Source Instructions

Version: v1.0.1

Section: 3.38

§Safety

This function is safe to use if the zknh target feature is present.