Skip to main content

cswap

Function cswap 

Source
pub fn cswap(c: Choice, a: &mut [u8], b: &mut [u8])
Expand description

Conditionally swap two equal-length buffers in constant time.

Used by Montgomery ladders to hide which scalar bit is being processed.