Skip to main content

ct_select

Function ct_select 

Source
pub fn ct_select(a: u8, b: u8, choice: u8) -> u8
Expand description

Constant-time conditional select: returns a if choice is 0, or b if choice is 1. Any other choice value is treated as 1.