From: Dmitry Belyavskiy Date: Wed, 7 Aug 2024 15:50:51 +0000 (+0200) Subject: Encap/decap in pkeyutl - documentation X-Git-Tag: openssl-3.4.0-alpha1~149 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=14fa2f5f474c8fe8cd09b513692a42a0a57467d2;p=thirdparty%2Fopenssl.git Encap/decap in pkeyutl - documentation Reviewed-by: Neil Horman Reviewed-by: Viktor Dukhovni Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/25127) --- diff --git a/doc/man1/openssl-pkeyutl.pod.in b/doc/man1/openssl-pkeyutl.pod.in index 50c2030aa35..9de50dd6cee 100644 --- a/doc/man1/openssl-pkeyutl.pod.in +++ b/doc/man1/openssl-pkeyutl.pod.in @@ -13,6 +13,7 @@ B B [B<-rawin>] [B<-digest> I] [B<-out> I] +[B<-secret> I] [B<-sigfile> I] [B<-inkey> I|I] [B<-keyform> B|B|B|B] @@ -28,8 +29,11 @@ B B [B<-encrypt>] [B<-decrypt>] [B<-derive>] +[B<-encap>] +[B<-decap>] [B<-kdf> I] [B<-kdflen> I] +[B<-kemop> I] [B<-pkeyopt> I:I] [B<-pkeyopt_passin> I[:I]] [B<-hexdump>] @@ -79,6 +83,10 @@ then the B<-rawin> option must be also specified. Specifies the output filename to write to or standard output by default. +=item B<-secret> I + +Specifies the output filename to write the secret to on I<-encap>. + =item B<-sigfile> I Signature file, required for B<-verify> operations only @@ -147,6 +155,31 @@ Decrypt the input data using a private key. Derive a shared secret using the peer key. +=item B<-encap> + +Encapsulate a generated secret using a private key. +The encapsulated result (binary data) is written to standard output by default, +or else to the file specified with I<-out>. +The I<-secret> option must also be provided to specify the output file for the +secret value generated in the encapsulation process. + +=item B<-decap> + +Decapsulate the secret using a private key. +The result (binary data) is written to standard output by default, or else to +the file specified with I<-out>. + +=item B<-kemop> I + +This option is used for I<-encap>/I<-decap> commands and specifies the KEM +operation specific for the key algorithm when there is no default KEM +operation. +If the algorithm has the default KEM operation, this option can be omitted. + +See L and algorithm-specific KEM documentation e.g. +L, L, L, and +L. + =item B<-kdf> I Use key derivation function I. The supported algorithms are