RSA-PSS.pod 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. =pod
  2. =head1 NAME
  3. RSA-PSS - EVP_PKEY RSA-PSS algorithm support
  4. =head1 DESCRIPTION
  5. The B<RSA-PSS> EVP_PKEY implementation is a restricted version of the RSA
  6. algorithm which only supports signing, verification and key generation
  7. using PSS padding modes with optional parameter restrictions.
  8. It has associated private key and public key formats.
  9. This algorithm shares several control operations with the B<RSA> algorithm
  10. but with some restrictions described below.
  11. =head2 Signing and Verification
  12. Signing and verification is similar to the B<RSA> algorithm except the
  13. padding mode is always PSS. If the key in use has parameter restrictions then
  14. the corresponding signature parameters are set to the restrictions:
  15. for example, if the key can only be used with digest SHA256, MGF1 SHA256
  16. and minimum salt length 32 then the digest, MGF1 digest and salt length
  17. will be set to SHA256, SHA256 and 32 respectively.
  18. =head2 Key Generation
  19. By default no parameter restrictions are placed on the generated key.
  20. =head1 NOTES
  21. The public key format is documented in RFC4055.
  22. The PKCS#8 private key format used for RSA-PSS keys is similar to the RSA
  23. format except it uses the B<id-RSASSA-PSS> OID and the parameters field, if
  24. present, restricts the key parameters in the same way as the public key.
  25. =head1 CONFORMING TO
  26. RFC 4055
  27. =head1 SEE ALSO
  28. L<EVP_PKEY_CTX_set_rsa_pss_keygen_md(3)>,
  29. L<EVP_PKEY_CTX_set_rsa_pss_keygen_mgf1_md(3)>,
  30. L<EVP_PKEY_CTX_set_rsa_pss_keygen_saltlen(3)>,
  31. L<EVP_PKEY_CTX_new(3)>,
  32. L<EVP_PKEY_CTX_ctrl_str(3)>,
  33. L<EVP_PKEY_derive(3)>
  34. =head1 COPYRIGHT
  35. Copyright 2017-2018 The OpenSSL Project Authors. All Rights Reserved.
  36. Licensed under the OpenSSL license (the "License"). You may not use
  37. this file except in compliance with the License. You can obtain a copy
  38. in the file LICENSE in the source distribution or at
  39. L<https://www.openssl.org/source/license.html>.
  40. =cut