NAME
RSAblindingon, RSAblindingoff - protect the RSA operation from
timing attacksSYNOPSIS
#include
int RSAblindingon(RSA *rsa, BNCTX *ctx); void RSAblindingoff(RSA *rsa);DESCRIPTION
RSA is vulnerable to timing attacks. In a setup where attackers can measure the time of RSA decryption or signature operations, blinding must be used to protect the RSA operation from that attack. RSAblindingon() turns blinding on for key rrssaa and generates a randomblinding factor. ccttxx is NNUULLLL or a pre-allocated and initialized BBNNCCTTXX.
The random number generator must be seeded prior to calling RSAblindingon(). RSAblindingoff() turns blinding off and frees the memory used for the blinding factor.RETURN VALUES
RSAblindingon() returns 1 on success, and 0 if an error occurred. RSAblindingoff() returns no value.SEE ALSO
rsa(3), rand(3) HISTORY RSAblindingon() and RSAblindingoff() appeared in SSLeay 0.9.0.0.9.7l 2000-02-24 RSAblindingon(3)