RSA_blinding_on 3 2000-07-16 0.9.9-dev OpenSSL

NAME

RSA_blinding_on, RSA_blinding_off - protect the RSA operation from timing attacks

LIBRARY

libcrypto, -lcrypto

SYNOPSIS


 #include 


 int RSA_blinding_on(RSA *rsa, BN_CTX *ctx);


 void RSA_blinding_off(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.

_R_S_A___b_l_i_n_d_i_n_g___o_n_(_) turns blinding on for key rrssaa and generates a random blinding factor. ccttxx is NNUULLLL or a pre-allocated and initialized BBNN__CCTTXX. The random number generator must be seeded prior to calling _R_S_A___b_l_i_n_d_i_n_g___o_n_(_).

_R_S_A___b_l_i_n_d_i_n_g___o_f_f_(_) turns blinding off and frees the memory used for the blinding factor.

RETURN VALUES

_R_S_A___b_l_i_n_d_i_n_g___o_n_(_) returns 1 on success, and 0 if an error occurred.

_R_S_A___b_l_i_n_d_i_n_g___o_f_f_(_) returns no value.

SEE ALSO

_o_p_e_n_s_s_l___r_s_a(3), _o_p_e_n_s_s_l___r_a_n_d(3)

HISTORY

_R_S_A___b_l_i_n_d_i_n_g___o_n_(_) and _R_S_A___b_l_i_n_d_i_n_g___o_f_f_(_) appeared in SSLeay 0.9.0.