EVP_SIGNATURE-RSA.pod 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. =pod
  2. =head1 NAME
  3. EVP_SIGNATURE-RSA
  4. - The EVP_PKEY RSA signature implementation
  5. =head1 DESCRIPTION
  6. Support for computing RSA signatures.
  7. See L<EVP_PKEY-RSA(7)> for information related to RSA keys.
  8. =head2 Signature Parameters
  9. The following signature parameters can be set using EVP_PKEY_CTX_set_params().
  10. This may be called after EVP_PKEY_sign_init() or EVP_PKEY_verify_init(),
  11. and before calling EVP_PKEY_sign() or EVP_PKEY_verify().
  12. =over 4
  13. =item "digest" (B<OSSL_SIGNATURE_PARAM_DIGEST>) <UTF8 string>
  14. =item "properties" (B<OSSL_SIGNATURE_PARAM_PROPERTIES>) <UTF8 string>
  15. These common parameters are described in L<provider-signature(7)>.
  16. =item "pad-mode" (B<OSSL_SIGNATURE_PARAM_PAD_MODE>) <UTF8 string>
  17. The type of padding to be used. Its value can be one of the following:
  18. =over 4
  19. =item "none" (B<OSSL_PKEY_RSA_PAD_MODE_NONE>)
  20. =item "pkcs1" (B<OSSL_PKEY_RSA_PAD_MODE_PKCSV15>)
  21. =item "sslv23" (B<OSSL_PKEY_RSA_PAD_MODE_SSLV23>)
  22. =item "x931" (B<OSSL_PKEY_RSA_PAD_MODE_X931>)
  23. =item "pss" (B<OSSL_PKEY_RSA_PAD_MODE_PSS>)
  24. =back
  25. =item "mgf1-digest" (B<OSSL_SIGNATURE_PARAM_MGF1_DIGEST>) <UTF8 string>
  26. The digest algorithm name to use for the maskGenAlgorithm used by "pss" mode.
  27. =item "mgf1-properties" (B<OSSL_SIGNATURE_PARAM_MGF1_PROPERTIES>) <UTF8 string>
  28. Sets the name of the property query associated with the "mgf1-digest" algorithm.
  29. NULL is used if this optional value is not set.
  30. =item "pss-saltlen" (B<OSSL_SIGNATURE_PARAM_PSS_SALTLEN>) <UTF8 string>
  31. Set or get the "pss" mode minimum salt length. The value can either be a string
  32. value representing a number or one of the following:
  33. =over 4
  34. =item "digest" (B<OSSL_PKEY_RSA_PSS_SALT_LEN_DIGEST>)
  35. Use the same length as the digest size.
  36. =item "max" (B<OSSL_PKEY_RSA_PSS_SALT_LEN_MAX>)
  37. Use the maximum salt length.
  38. =item "auto" (B<OSSL_PKEY_RSA_PSS_SALT_LEN_AUTO>)
  39. Auto detect the salt length.
  40. =back
  41. =back
  42. The following signature parameters can be retrieved using
  43. EVP_PKEY_CTX_get_params().
  44. =over 4
  45. =item "algorithm-id" (B<OSSL_SIGNATURE_PARAM_ALGORITHM_ID>) <octet string>
  46. This common parameter is described in L<provider-signature(7)>.
  47. =item "digest" (B<OSSL_SIGNATURE_PARAM_DIGEST>) <UTF8 string>
  48. =item "pad-mode" (B<OSSL_SIGNATURE_PARAM_PAD_MODE>) <UTF8 string>
  49. =item "mgf1-digest" (B<OSSL_SIGNATURE_PARAM_MGF1_DIGEST>) <UTF8 string>
  50. These parameters are as described above.
  51. =back
  52. =head1 SEE ALSO
  53. L<EVP_PKEY_CTX_set_params(3)>,
  54. L<EVP_PKEY_sign(3)>,
  55. L<EVP_PKEY_verify(3)>,
  56. L<provider-signature(7)>,
  57. =head1 COPYRIGHT
  58. Copyright 2020 The OpenSSL Project Authors. All Rights Reserved.
  59. Licensed under the Apache License 2.0 (the "License"). You may not use
  60. this file except in compliance with the License. You can obtain a copy
  61. in the file LICENSE in the source distribution or at
  62. L<https://www.openssl.org/source/license.html>.
  63. =cut