Skip to main content

Module blinding

Module blinding 

Source
Expand description

Exponent and CRT modulus blinding for RSA private operations.

Functionsยง

blind_exponent ๐Ÿ”’
Return exponent + b * totient for a fresh, uniformly random 128-bit b.
blind_modulus ๐Ÿ”’
Multiply a CRT prime by a fresh random odd factor, using public storage widths.
pow_mod_blinded ๐Ÿ”’
Exponentiate modulo a fresh multiple of p, then return the residue modulo p.
totient ๐Ÿ”’
Compute ฯ†(n) = โˆ(p_i - 1) at the public modulus precision for non-CRT operations.