ct_assign

Function ct_assign 

Source
pub fn ct_assign(dst: &mut [u8], src: &[u8], condition: bool)
Expand description

Constant-time conditional assignment

Sets dst to src if condition is true, otherwise leaves dst unchanged. This function runs in constant time regardless of the input values.