EVP_ASYM_CIPHER-RSA.7ossl 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. .\" -*- mode: troff; coding: utf-8 -*-
  2. .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43)
  3. .\"
  4. .\" Standard preamble:
  5. .\" ========================================================================
  6. .de Sp \" Vertical space (when we can't use .PP)
  7. .if t .sp .5v
  8. .if n .sp
  9. ..
  10. .de Vb \" Begin verbatim text
  11. .ft CW
  12. .nf
  13. .ne \\$1
  14. ..
  15. .de Ve \" End verbatim text
  16. .ft R
  17. .fi
  18. ..
  19. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>.
  20. .ie n \{\
  21. . ds C` ""
  22. . ds C' ""
  23. 'br\}
  24. .el\{\
  25. . ds C`
  26. . ds C'
  27. 'br\}
  28. .\"
  29. .\" Escape single quotes in literal strings from groff's Unicode transform.
  30. .ie \n(.g .ds Aq \(aq
  31. .el .ds Aq '
  32. .\"
  33. .\" If the F register is >0, we'll generate index entries on stderr for
  34. .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
  35. .\" entries marked with X<> in POD. Of course, you'll have to process the
  36. .\" output yourself in some meaningful fashion.
  37. .\"
  38. .\" Avoid warning from groff about undefined register 'F'.
  39. .de IX
  40. ..
  41. .nr rF 0
  42. .if \n(.g .if rF .nr rF 1
  43. .if (\n(rF:(\n(.g==0)) \{\
  44. . if \nF \{\
  45. . de IX
  46. . tm Index:\\$1\t\\n%\t"\\$2"
  47. ..
  48. . if !\nF==2 \{\
  49. . nr % 0
  50. . nr F 2
  51. . \}
  52. . \}
  53. .\}
  54. .rr rF
  55. .\" ========================================================================
  56. .\"
  57. .IX Title "EVP_ASYM_CIPHER-RSA 7ossl"
  58. .TH EVP_ASYM_CIPHER-RSA 7ossl 2025-01-17 3.4.0 OpenSSL
  59. .\" For nroff, turn off justification. Always turn off hyphenation; it makes
  60. .\" way too many mistakes in technical documents.
  61. .if n .ad l
  62. .nh
  63. .SH NAME
  64. EVP_ASYM_CIPHER\-RSA
  65. \&\- RSA Asymmetric Cipher algorithm support
  66. .SH DESCRIPTION
  67. .IX Header "DESCRIPTION"
  68. Asymmetric Cipher support for the \fBRSA\fR key type.
  69. .SS "RSA Asymmetric Cipher parameters"
  70. .IX Subsection "RSA Asymmetric Cipher parameters"
  71. .IP """pad-mode"" (\fBOSSL_ASYM_CIPHER_PARAM_PAD_MODE\fR) <UTF8 string>" 4
  72. .IX Item """pad-mode"" (OSSL_ASYM_CIPHER_PARAM_PAD_MODE) <UTF8 string>"
  73. The default provider understands these RSA padding modes in string form:
  74. .RS 4
  75. .IP """none"" (\fBOSSL_PKEY_RSA_PAD_MODE_NONE\fR)" 4
  76. .IX Item """none"" (OSSL_PKEY_RSA_PAD_MODE_NONE)"
  77. .PD 0
  78. .IP """oaep"" (\fBOSSL_PKEY_RSA_PAD_MODE_OAEP\fR)" 4
  79. .IX Item """oaep"" (OSSL_PKEY_RSA_PAD_MODE_OAEP)"
  80. .IP """pkcs1"" (\fBOSSL_PKEY_RSA_PAD_MODE_PKCSV15\fR)" 4
  81. .IX Item """pkcs1"" (OSSL_PKEY_RSA_PAD_MODE_PKCSV15)"
  82. .PD
  83. This padding mode is no longer supported by the FIPS provider for key
  84. agreement and key transport.
  85. (This is a FIPS 140\-3 requirement)
  86. .IP """x931"" (\fBOSSL_PKEY_RSA_PAD_MODE_X931\fR)" 4
  87. .IX Item """x931"" (OSSL_PKEY_RSA_PAD_MODE_X931)"
  88. .RE
  89. .RS 4
  90. .RE
  91. .PD 0
  92. .IP """pad-mode"" (\fBOSSL_ASYM_CIPHER_PARAM_PAD_MODE\fR) <integer>" 4
  93. .IX Item """pad-mode"" (OSSL_ASYM_CIPHER_PARAM_PAD_MODE) <integer>"
  94. .PD
  95. The default provider understands these RSA padding modes in integer form:
  96. .RS 4
  97. .IP "1 (\fBRSA_PKCS1_PADDING\fR)" 4
  98. .IX Item "1 (RSA_PKCS1_PADDING)"
  99. This padding mode is no longer supported by the FIPS provider for key
  100. agreement and key transport.
  101. (This is a FIPS 140\-3 requirement)
  102. .IP "3 (\fBRSA_NO_PADDING\fR)" 4
  103. .IX Item "3 (RSA_NO_PADDING)"
  104. .PD 0
  105. .IP "4 (\fBRSA_PKCS1_OAEP_PADDING\fR)" 4
  106. .IX Item "4 (RSA_PKCS1_OAEP_PADDING)"
  107. .IP "5 (\fBRSA_X931_PADDING\fR)" 4
  108. .IX Item "5 (RSA_X931_PADDING)"
  109. .RE
  110. .RS 4
  111. .PD
  112. .Sp
  113. See \fBEVP_PKEY_CTX_set_rsa_padding\fR\|(3) for further details.
  114. .RE
  115. .IP """digest"" (\fBOSSL_ASYM_CIPHER_PARAM_OAEP_DIGEST\fR) <UTF8 string>" 4
  116. .IX Item """digest"" (OSSL_ASYM_CIPHER_PARAM_OAEP_DIGEST) <UTF8 string>"
  117. .PD 0
  118. .IP """digest-props"" (\fBOSSL_ASYM_CIPHER_PARAM_OAEP_DIGEST_PROPS\fR) <UTF8 string>" 4
  119. .IX Item """digest-props"" (OSSL_ASYM_CIPHER_PARAM_OAEP_DIGEST_PROPS) <UTF8 string>"
  120. .IP """mgf1\-digest"" (\fBOSSL_ASYM_CIPHER_PARAM_MGF1_DIGEST\fR) <UTF8 string>" 4
  121. .IX Item """mgf1-digest"" (OSSL_ASYM_CIPHER_PARAM_MGF1_DIGEST) <UTF8 string>"
  122. .IP """mgf1\-digest\-props"" (\fBOSSL_ASYM_CIPHER_PARAM_MGF1_DIGEST_PROPS\fR) <UTF8 string>" 4
  123. .IX Item """mgf1-digest-props"" (OSSL_ASYM_CIPHER_PARAM_MGF1_DIGEST_PROPS) <UTF8 string>"
  124. .IP """oaep-label"" (\fBOSSL_ASYM_CIPHER_PARAM_OAEP_LABEL\fR) <octet string>" 4
  125. .IX Item """oaep-label"" (OSSL_ASYM_CIPHER_PARAM_OAEP_LABEL) <octet string>"
  126. .IP """tls-client-version"" (\fBOSSL_ASYM_CIPHER_PARAM_TLS_CLIENT_VERSION\fR) <unsigned integer>" 4
  127. .IX Item """tls-client-version"" (OSSL_ASYM_CIPHER_PARAM_TLS_CLIENT_VERSION) <unsigned integer>"
  128. .PD
  129. See \fBRSA_PKCS1_WITH_TLS_PADDING\fR on the page \fBEVP_PKEY_CTX_set_rsa_padding\fR\|(3).
  130. .IP """tls-negotiated-version"" (\fBOSSL_ASYM_CIPHER_PARAM_TLS_CLIENT_VERSION\fR) <unsigned integer>" 4
  131. .IX Item """tls-negotiated-version"" (OSSL_ASYM_CIPHER_PARAM_TLS_CLIENT_VERSION) <unsigned integer>"
  132. See \fBRSA_PKCS1_WITH_TLS_PADDING\fR on the page \fBEVP_PKEY_CTX_set_rsa_padding\fR\|(3).
  133. .Sp
  134. See "Asymmetric Cipher Parameters" in \fBprovider\-asym_cipher\fR\|(7) for more information.
  135. .PP
  136. The OpenSSL FIPS provider also supports the following parameters:
  137. .IP """fips-indicator"" (\fBOSSL_ASYM_CIPHER_PARAM_FIPS_APPROVED_INDICATOR\fR) <integer>" 4
  138. .IX Item """fips-indicator"" (OSSL_ASYM_CIPHER_PARAM_FIPS_APPROVED_INDICATOR) <integer>"
  139. .PD 0
  140. .IP """key-check"" (\fBOSSL_ASYM_CIPHER_PARAM_FIPS_KEY_CHECK\fR) <integer>" 4
  141. .IX Item """key-check"" (OSSL_ASYM_CIPHER_PARAM_FIPS_KEY_CHECK) <integer>"
  142. .PD
  143. See "Asymmetric Cipher Parameters" in \fBprovider\-asym_cipher\fR\|(7) for more information.
  144. .IP """pkcs15\-pad\-disabled"" (\fBOSSL_ASYM_CIPHER_PARAM_FIPS_RSA_PKCS15_PAD_DISABLED\fR) <integer>" 4
  145. .IX Item """pkcs15-pad-disabled"" (OSSL_ASYM_CIPHER_PARAM_FIPS_RSA_PKCS15_PAD_DISABLED) <integer>"
  146. The default value of 1 causes an error during encryption if the RSA padding
  147. mode is set to "pkcs1".
  148. Setting this to zero will ignore the error and set the approved
  149. "fips-indicator" to 0.
  150. This option breaks FIPS compliance if it causes the approved "fips-indicator"
  151. to return 0.
  152. .SH "SEE ALSO"
  153. .IX Header "SEE ALSO"
  154. \&\fBEVP_PKEY\-RSA\fR\|(7),
  155. \&\fBEVP_PKEY\fR\|(3),
  156. \&\fBprovider\-asym_cipher\fR\|(7),
  157. \&\fBprovider\-keymgmt\fR\|(7),
  158. \&\fBOSSL_PROVIDER\-default\fR\|(7)
  159. \&\fBOSSL_PROVIDER\-FIPS\fR\|(7)
  160. .SH COPYRIGHT
  161. .IX Header "COPYRIGHT"
  162. Copyright 2022\-2024 The OpenSSL Project Authors. All Rights Reserved.
  163. .PP
  164. Licensed under the Apache License 2.0 (the "License"). You may not use
  165. this file except in compliance with the License. You can obtain a copy
  166. in the file LICENSE in the source distribution or at
  167. <https://www.openssl.org/source/license.html>.