提交 bf0d5609 编写于 作者: D Dr. Stephen Henson

Move and update RSA-PSS documentation.

Reviewed-by: NRich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3621)
上级 ccd0aeac
...@@ -2,8 +2,7 @@ ...@@ -2,8 +2,7 @@
=head1 NAME =head1 NAME
EVP_PKEY_CTX_set_rsa_pss_keygen_md, EVP_PKEY_CTX_set_rsa_pss_keygen_mgf1_md, RSA-PSS - EVP_PKEY RSA-PSS algorithm support
EVP_PKEY_CTX_set_rsa_pss_keygen_saltlen - RSA PSS signature algorithm
=head1 SYNOPSIS =head1 SYNOPSIS
...@@ -18,10 +17,9 @@ EVP_PKEY_CTX_set_rsa_pss_keygen_saltlen - RSA PSS signature algorithm ...@@ -18,10 +17,9 @@ EVP_PKEY_CTX_set_rsa_pss_keygen_saltlen - RSA PSS signature algorithm
=head1 DESCRIPTION =head1 DESCRIPTION
The B<EVP_PKEY_RSA_PSS> algorithm implements the RSA PSS signature algorithm. The B<RSA-PSS> EVP_PKEY implementation is a restricted version of the RSA
It is a restricted version of the RSA algorithm which only supports signing, algorithm which only supports signing, verification and key generation
verification and key generation using PSS padding modes with optional using PSS padding modes with optional parameter restrictions.
parameter restrictions.
It has associated private key and public key formats. It has associated private key and public key formats.
...@@ -57,7 +55,7 @@ similar to the B<RSA> versions. ...@@ -57,7 +55,7 @@ similar to the B<RSA> versions.
=head1 KEY GENERATION =head1 KEY GENERATION
As with RSA key generation the EVP_PKEY_CTX_set_rsa_rsa_keygen_bits() As with RSA key generation the EVP_PKEY_CTX_set_rsa_rsa_keygen_bits()
and EVP_PKEY_CTX_set_rsa_keygen_pubexp() macros are supported for RSA PSS: and EVP_PKEY_CTX_set_rsa_keygen_pubexp() macros are supported for RSA-PSS:
they have exactly the same meaning as for the RSA algorithm. they have exactly the same meaning as for the RSA algorithm.
Optional parameter restrictions can be specified when generating a PSS key. By Optional parameter restrictions can be specified when generating a PSS key. By
...@@ -77,6 +75,18 @@ generated key can use to B<md>. ...@@ -77,6 +75,18 @@ generated key can use to B<md>.
EVP_PKEY_CTX_set_rsa_pss_keygen_saltlen() restricts the minimum salt length EVP_PKEY_CTX_set_rsa_pss_keygen_saltlen() restricts the minimum salt length
to B<saltlen>. to B<saltlen>.
=head1 NOTES
A context for the B<RSA-PSS> algorithm can be obtained by calling:
EVP_PKEY_CTX *pctx = EVP_PKEY_CTX_new_id(EVP_PKEY_RSA_PSS, NULL);
The public key format is documented in RFC4055.
The PKCS#8 private key format used for RSA-PSS keys is similar to the RSA
format except it uses the B<id-RSASSA-PSS> OID and the parameters field, if
present, restricts the key parameters in the same way as the public key.
=head1 RETURN VALUES =head1 RETURN VALUES
All these functions return 1 for success and 0 or a negative value for failure. All these functions return 1 for success and 0 or a negative value for failure.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册