Skip to main content

build_gost_nonce

Function build_gost_nonce 

Source
fn build_gost_nonce(iv: &[u8; 12]) -> [u8; 16]
Expand description

Builds a 16-byte nonce from the 12-byte IV (system_title ‖ IC). The GOST CTR mode uses a 128-bit block, so we extend the 96-bit IV with zeros to form the counter initial value.