Skip to main content

g

Function g 

Source
pub fn g(input: &[u8]) -> ([u8; 32], [u8; 32])
Expand description

G(c) — SHA3-512 hash returning two 32-byte values.

Computes SHA3-512(c) and splits the 64-byte output into two halves. Used in FIPS 203 to derive both the shared secret and the encryption randomness: (K, r) = G(m || H(ek)).