1RSA_BLINDING_ON(3)                  OpenSSL                 RSA_BLINDING_ON(3)
2
3
4

NAME

6       RSA_blinding_on, RSA_blinding_off - protect the RSA operation from
7       timing attacks
8

SYNOPSIS

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

DESCRIPTION

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

RETURN VALUES

30       RSA_blinding_on() returns 1 on success, and 0 if an error occurred.
31
32       RSA_blinding_off() returns no value.
33
35       Copyright 2000-2016 The OpenSSL Project Authors. All Rights Reserved.
36
37       Licensed under the OpenSSL license (the "License").  You may not use
38       this file except in compliance with the License.  You can obtain a copy
39       in the file LICENSE in the source distribution or at
40       <https://www.openssl.org/source/license.html>.
41
42
43
441.1.1c                            2019-05-28                RSA_BLINDING_ON(3)
Impressum