From 3715899a4aff8da2486880f04fb791398762fdd2 Mon Sep 17 00:00:00 2001 From: schwarze <> Date: Thu, 7 Nov 2024 17:33:42 +0000 Subject: document EVP_PKEY_CTRL_SET_MAC_KEY for CMAC --- src/lib/libcrypto/man/EVP_PKEY_CTX_ctrl.3 | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'src/lib') diff --git a/src/lib/libcrypto/man/EVP_PKEY_CTX_ctrl.3 b/src/lib/libcrypto/man/EVP_PKEY_CTX_ctrl.3 index 075ee19f46..9049a11832 100644 --- a/src/lib/libcrypto/man/EVP_PKEY_CTX_ctrl.3 +++ b/src/lib/libcrypto/man/EVP_PKEY_CTX_ctrl.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: EVP_PKEY_CTX_ctrl.3,v 1.24 2024/11/06 18:58:01 schwarze Exp $ +.\" $OpenBSD: EVP_PKEY_CTX_ctrl.3,v 1.25 2024/11/07 17:33:42 schwarze Exp $ .\" full merge up to: OpenSSL 99d63d46 Oct 26 13:56:48 2016 -0400 .\" selective merge up to: OpenSSL 24a535ea Sep 22 13:14:20 2020 +0100 .\" Parts were split out into RSA_pkey_ctx_ctrl(3). @@ -69,7 +69,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED .\" OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.Dd $Mdocdate: November 6 2024 $ +.Dd $Mdocdate: November 7 2024 $ .Dt EVP_PKEY_CTX_CTRL 3 .Os .Sh NAME @@ -441,6 +441,20 @@ object, which can be obtained from the functions in the CIPHER LISTING in The .Fa p1 argument is ignored; passing 0 is recommended. +.Pp +After selecting the block cipher with +.Dv EVP_PKEY_CTRL_CIPHER , +.Fn EVP_PKEY_CTX_ctrl +can be called again with an +.Fa optype +of \-1, a +.Fa cmd +of +.Dv EVP_PKEY_CTRL_SET_MAC_KEY , +.Fa p2 +pointing to the symmetric key, and +.Fa p1 +specifying the length of the symmetric key in bytes. .Ss Other parameters The .Fn EVP_PKEY_CTX_set1_id , -- cgit v1.2.3-55-g6feb