]> git.ipfire.org Git - thirdparty/openssl.git/blob - doc/man7/EVP_SIGNATURE-RSA.pod
0cc3336bc976c6e0d1e9138c0253ce0b662e921d
[thirdparty/openssl.git] / doc / man7 / EVP_SIGNATURE-RSA.pod
1 =pod
2
3 =head1 NAME
4
5 EVP_SIGNATURE-RSA
6 - The EVP_PKEY RSA signature implementation
7
8 =head1 DESCRIPTION
9
10 Support for computing RSA signatures.
11 See L<EVP_PKEY-RSA(7)> for information related to RSA keys.
12
13 =head2 Signature Parameters
14
15 The following signature parameters can be set using EVP_PKEY_CTX_set_params().
16 This may be called after EVP_PKEY_sign_init() or EVP_PKEY_verify_init(),
17 and before calling EVP_PKEY_sign() or EVP_PKEY_verify().
18
19 =over 4
20
21 =item "digest" (B<OSSL_SIGNATURE_PARAM_DIGEST>) <UTF8 string>
22
23 =item "properties" (B<OSSL_SIGNATURE_PARAM_PROPERTIES>) <UTF8 string>
24
25 These common parameters are described in L<provider-signature(7)>.
26
27 =item "pad-mode" (B<OSSL_SIGNATURE_PARAM_PAD_MODE>) <UTF8 string>
28
29 The type of padding to be used. Its value can be one of the following:
30
31 =over 4
32
33 =item "none" (B<OSSL_PKEY_RSA_PAD_MODE_NONE>)
34
35 =item "pkcs1" (B<OSSL_PKEY_RSA_PAD_MODE_PKCSV15>)
36
37 =item "sslv23" (B<OSSL_PKEY_RSA_PAD_MODE_SSLV23>)
38
39 =item "x931" (B<OSSL_PKEY_RSA_PAD_MODE_X931>)
40
41 =item "pss" (B<OSSL_PKEY_RSA_PAD_MODE_PSS>)
42
43 =back
44
45 =item "mgf1-digest" (B<OSSL_SIGNATURE_PARAM_MGF1_DIGEST>) <UTF8 string>
46
47 The digest algorithm name to use for the maskGenAlgorithm used by "pss" mode.
48
49 =item "mgf1-properties" (B<OSSL_SIGNATURE_PARAM_MGF1_PROPERTIES>) <UTF8 string>
50
51 Sets the name of the property query associated with the "mgf1-digest" algorithm.
52 NULL is used if this optional value is not set.
53
54 =item "pss-saltlen" (B<OSSL_SIGNATURE_PARAM_PSS_SALTLEN>) <UTF8 string>
55
56 Set or get the "pss" mode minimum salt length. The value can either be a string
57 value representing a number or one of the following:
58
59 =over 4
60
61 =item "digest" (B<OSSL_PKEY_RSA_PSS_SALT_LEN_DIGEST>)
62
63 Use the same length as the digest size.
64
65 =item "max" (B<OSSL_PKEY_RSA_PSS_SALT_LEN_MAX>)
66
67 Use the maximum salt length.
68
69 =item "auto" (B<OSSL_PKEY_RSA_PSS_SALT_LEN_AUTO>)
70
71 Auto detect the salt length.
72
73 =back
74
75 =back
76
77 The following signature parameters can be retrieved using
78 EVP_PKEY_CTX_get_params().
79
80 =over 4
81
82 =item "algorithm-id" (B<OSSL_SIGNATURE_PARAM_ALGORITHM_ID>) <octet string>
83
84 This common parameter is described in L<provider-signature(7)>.
85
86 =item "digest" (B<OSSL_SIGNATURE_PARAM_DIGEST>) <UTF8 string>
87
88 =item "pad-mode" (B<OSSL_SIGNATURE_PARAM_PAD_MODE>) <UTF8 string>
89
90 =item "mgf1-digest" (B<OSSL_SIGNATURE_PARAM_MGF1_DIGEST>) <UTF8 string>
91
92 These parameters are as described above.
93
94 =back
95
96 =head1 SEE ALSO
97
98 L<EVP_PKEY_CTX_set_params(3)>,
99 L<EVP_PKEY_sign(3)>,
100 L<EVP_PKEY_verify(3)>,
101 L<provider-signature(7)>,
102
103 =head1 COPYRIGHT
104
105 Copyright 2020 The OpenSSL Project Authors. All Rights Reserved.
106
107 Licensed under the Apache License 2.0 (the "License"). You may not use
108 this file except in compliance with the License. You can obtain a copy
109 in the file LICENSE in the source distribution or at
110 L<https://www.openssl.org/source/license.html>.
111
112 =cut