Skip to main content

secret_from_digest

Function secret_from_digest 

Source
pub fn secret_from_digest(state: [b64; 8]) -> ScalarWords
Expand description

Clamped secret scalar a from SHA-512(seed) (RFC 8032 section 5.1.5).

state is the final SHA-512 state of the 32-byte seed. The scalar is the lower 32 bytes of the digest, clamped.