From: Matt Caswell Date: Fri, 18 Sep 2020 11:10:21 +0000 (+0100) Subject: Document the provider side SM2 Asymmetric Cipher support X-Git-Tag: openssl-3.0.0-alpha7~115 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a48309cb5c58be8fa310608124925d4729664cf8;p=thirdparty%2Fopenssl.git Document the provider side SM2 Asymmetric Cipher support Reviewed-by: Shane Lontis (Merged from https://github.com/openssl/openssl/pull/12913) --- diff --git a/doc/man7/EVP_ASYM_CIPHER-SM2.pod b/doc/man7/EVP_ASYM_CIPHER-SM2.pod new file mode 100644 index 00000000000..27f0032b78d --- /dev/null +++ b/doc/man7/EVP_ASYM_CIPHER-SM2.pod @@ -0,0 +1,41 @@ +=pod + +=head1 NAME + +EVP_ASYM_CIPHER-SM2 +- SM2 Asymmetric Cipher algorithm support + +=head1 DESCRIPTION + +Asymmetric Cipher support for the B key type. + +=head2 SM2 Asymmetric Cipher parameters + +=over 4 + +=item "digest" (B) + +=item "digest-props" (B) + +See L. + +=back + +=head1 SEE ALSO + +L, +L, +L, +L, +L + +=head1 COPYRIGHT + +Copyright 2020 The OpenSSL Project Authors. All Rights Reserved. + +Licensed under the Apache License 2.0 (the "License"). You may not use +this file except in compliance with the License. You can obtain a copy +in the file LICENSE in the source distribution or at +L. + +=cut diff --git a/doc/man7/SM2.pod b/doc/man7/EVP_PKEY-SM2.pod similarity index 94% rename from doc/man7/SM2.pod rename to doc/man7/EVP_PKEY-SM2.pod index de52d05329e..bb6258c8732 100644 --- a/doc/man7/SM2.pod +++ b/doc/man7/EVP_PKEY-SM2.pod @@ -2,7 +2,8 @@ =head1 NAME -SM2 - Chinese SM2 signature and encryption algorithm support +EVP_PKEY-SM2, EVP_KEYMGMT-SM2, SM2 +- EVP_PKEY keytype support for the Chinese SM2 signature and encryption algorithms =head1 DESCRIPTION @@ -33,7 +34,7 @@ that B should be assigned to the B, like this: There is normally no need to pass a B parameter to EVP_DigestSignInit() or EVP_DigestVerifyInit() in such a scenario. -SM2 can be tested with the L application since version 3.0.0. +SM2 can be tested with the L application since version 3.0. Currently, the only valid algorithm name is B. =head1 EXAMPLES diff --git a/doc/man7/OSSL_PROVIDER-default.pod b/doc/man7/OSSL_PROVIDER-default.pod index 848c887b293..da6185c4d37 100644 --- a/doc/man7/OSSL_PROVIDER-default.pod +++ b/doc/man7/OSSL_PROVIDER-default.pod @@ -180,6 +180,8 @@ The OpenSSL default provider supports these operations and algorithms: =item RSA, see L +=item SM2, see L + =back =head2 Asymmetric Key Encapsulation diff --git a/doc/man7/provider-asym_cipher.pod b/doc/man7/provider-asym_cipher.pod index 5531a08f372..ca3e12fa850 100644 --- a/doc/man7/provider-asym_cipher.pod +++ b/doc/man7/provider-asym_cipher.pod @@ -193,10 +193,19 @@ further details. Gets or sets the name of the OAEP digest algorithm used when OAEP padding is in use. +=item "digest" (B) + +Gets or sets the name of the digest algorithm used by the algorithm (where +applicable). + =item "digest-props" (B) Gets or sets the properties to use when fetching the OAEP digest algorithm. +=item "digest-props" (B) + +Gets or sets the properties to use when fetching the cipher digest algorithm. + =item "mgf1-digest" (B) Gets or sets the name of the MGF1 digest algorithm used when OAEP or PSS padding