1RSA_BLINDING_ON(3ossl)              OpenSSL             RSA_BLINDING_ON(3ossl)
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       The following functions have been deprecated since OpenSSL 3.0, and can
13       be hidden entirely by defining OPENSSL_API_COMPAT with a suitable
14       version value, see openssl_user_macros(7):
15
16        int RSA_blinding_on(RSA *rsa, BN_CTX *ctx);
17
18        void RSA_blinding_off(RSA *rsa);
19

DESCRIPTION

21       All of the functions described on this page are deprecated.
22
23       RSA is vulnerable to timing attacks. In a setup where attackers can
24       measure the time of RSA decryption or signature operations, blinding
25       must be used to protect the RSA operation from that attack.
26
27       RSA_blinding_on() turns blinding on for key rsa and generates a random
28       blinding factor. ctx is NULL or a preallocated and initialized BN_CTX.
29
30       RSA_blinding_off() turns blinding off and frees the memory used for the
31       blinding factor.
32

RETURN VALUES

34       RSA_blinding_on() returns 1 on success, and 0 if an error occurred.
35
36       RSA_blinding_off() returns no value.
37

HISTORY

39       All of these functions were deprecated in OpenSSL 3.0.
40
42       Copyright 2000-2021 The OpenSSL Project Authors. All Rights Reserved.
43
44       Licensed under the Apache License 2.0 (the "License").  You may not use
45       this file except in compliance with the License.  You can obtain a copy
46       in the file LICENSE in the source distribution or at
47       <https://www.openssl.org/source/license.html>.
48
49
50
513.0.5                             2022-11-01            RSA_BLINDING_ON(3ossl)
Impressum