1RSA_blinding_on(3) OpenSSL RSA_blinding_on(3)
2
3
4
6 RSA_blinding_on, RSA_blinding_off - protect the RSA operation from
7 timing attacks
8
10 #include <openssl/rsa.h>
11
12 int RSA_blinding_on(RSA *rsa, BN_CTX *ctx);
13
14 void RSA_blinding_off(RSA *rsa);
15
17 RSA is vulnerable to timing attacks. In a setup where attackers can
18 measure the time of RSA decryption or signature operations, blinding
19 must be used to protect the RSA operation from that attack.
20
21 RSA_blinding_on() turns blinding on for key rsa and generates a random
22 blinding factor. ctx is NULL or a pre-allocated and initialized BN_CTX.
23 The random number generator must be seeded prior to calling
24 RSA_blinding_on().
25
26 RSA_blinding_off() turns blinding off and frees the memory used for the
27 blinding factor.
28
30 RSA_blinding_on() returns 1 on success, and 0 if an error occurred.
31
32 RSA_blinding_off() returns no value.
33
35 rsa(3), rand(3)
36
38 RSA_blinding_on() and RSA_blinding_off() appeared in SSLeay 0.9.0.
39
40
41
421.0.2o 2020-01-28 RSA_blinding_on(3)