hacspec_lib::prelude::ct_util

Function ct_div

Source
pub fn ct_div<T: Integer + Copy>(a: T, d: T) -> (T, T)
Expand description

Constant time division for Numerics. Note that this function is only constant time if T is a secret integer and hence provides constant time implementations for the used functions.