diff options
author | schwarze <> | 2016-11-04 10:17:17 +0000 |
---|---|---|
committer | schwarze <> | 2016-11-04 10:17:17 +0000 |
commit | 195fe5e91c60bd205043b4bea113abdff1c67bcc (patch) | |
tree | 1d15fe02d83a7ffb422ebe78c34ee1117da63e59 /src/lib/libcrypto/man/RSA_blinding_on.3 | |
parent | 00872265b9546fcf2d5795aa3a120c35142d268b (diff) | |
download | openbsd-195fe5e91c60bd205043b4bea113abdff1c67bcc.tar.gz openbsd-195fe5e91c60bd205043b4bea113abdff1c67bcc.tar.bz2 openbsd-195fe5e91c60bd205043b4bea113abdff1c67bcc.zip |
convert RSA manuals from pod to mdoc
Diffstat (limited to 'src/lib/libcrypto/man/RSA_blinding_on.3')
-rw-r--r-- | src/lib/libcrypto/man/RSA_blinding_on.3 | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/src/lib/libcrypto/man/RSA_blinding_on.3 b/src/lib/libcrypto/man/RSA_blinding_on.3 new file mode 100644 index 0000000000..a2d22c9093 --- /dev/null +++ b/src/lib/libcrypto/man/RSA_blinding_on.3 | |||
@@ -0,0 +1,46 @@ | |||
1 | .Dd $Mdocdate: November 4 2016 $ | ||
2 | .Dt RSA_BLINDING_ON 3 | ||
3 | .Os | ||
4 | .Sh NAME | ||
5 | .Nm RSA_blinding_on , | ||
6 | .Nm RSA_blinding_off | ||
7 | .Nd protect the RSA operation from timing attacks | ||
8 | .Sh SYNOPSIS | ||
9 | .In openssl/rsa.h | ||
10 | .Ft int | ||
11 | .Fo RSA_blinding_on | ||
12 | .Fa "RSA *rsa" | ||
13 | .Fa "BN_CTX *ctx" | ||
14 | .Fc | ||
15 | .Ft void | ||
16 | .Fo RSA_blinding_off | ||
17 | .Fa "RSA *rsa" | ||
18 | .Fc | ||
19 | .Sh DESCRIPTION | ||
20 | RSA is vulnerable to timing attacks. | ||
21 | In a setup where attackers can measure the time of RSA decryption or | ||
22 | signature operations, blinding must be used to protect the RSA operation | ||
23 | from that attack. | ||
24 | .Pp | ||
25 | .Fn RSA_blinding_on | ||
26 | turns blinding on for key | ||
27 | .Fa rsa | ||
28 | and generates a random blinding factor. | ||
29 | .Fa ctx | ||
30 | is | ||
31 | .Dv NULL | ||
32 | or a pre-allocated and initialized | ||
33 | .Vt BN_CTX . | ||
34 | .Pp | ||
35 | .Fn RSA_blinding_off | ||
36 | turns blinding off and frees the memory used for the blinding factor. | ||
37 | .Sh RETURN VALUES | ||
38 | .Fn RSA_blinding_on | ||
39 | returns 1 on success, and 0 if an error occurred. | ||
40 | .Sh SEE ALSO | ||
41 | .Xr rsa 3 | ||
42 | .Sh HISTORY | ||
43 | .Fn RSA_blinding_on | ||
44 | and | ||
45 | .Fn RSA_blinding_off | ||
46 | appeared in SSLeay 0.9.0. | ||