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 preallocated and initialized BN_CTX.
23
24 RSA_blinding_off() turns blinding off and frees the memory used for the
25 blinding factor.
26
28 RSA_blinding_on() returns 1 on success, and 0 if an error occurred.
29
30 RSA_blinding_off() returns no value.
31
33 Copyright 2000-2020 The OpenSSL Project Authors. All Rights Reserved.
34
35 Licensed under the OpenSSL license (the "License"). You may not use
36 this file except in compliance with the License. You can obtain a copy
37 in the file LICENSE in the source distribution or at
38 <https://www.openssl.org/source/license.html>.
39
40
41
421.1.1i 2021-01-26 RSA_BLINDING_ON(3)