diff options
Diffstat (limited to 'upstream/archlinux/man1/openssl-mac.1ssl')
-rw-r--r-- | upstream/archlinux/man1/openssl-mac.1ssl | 53 |
1 files changed, 34 insertions, 19 deletions
diff --git a/upstream/archlinux/man1/openssl-mac.1ssl b/upstream/archlinux/man1/openssl-mac.1ssl index cb88792a..1e8b7d34 100644 --- a/upstream/archlinux/man1/openssl-mac.1ssl +++ b/upstream/archlinux/man1/openssl-mac.1ssl @@ -55,7 +55,7 @@ .\" ======================================================================== .\" .IX Title "OPENSSL-MAC 1ssl" -.TH OPENSSL-MAC 1ssl 2024-01-30 3.2.1 OpenSSL +.TH OPENSSL-MAC 1ssl 2024-04-28 3.3.0 OpenSSL .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l @@ -165,28 +165,43 @@ To see the list of supported MAC's use the command \f(CW\*(C`openssl list \&\-mac\-algorithms\*(C'\fR. .SH EXAMPLES .IX Header "EXAMPLES" -To create a hex-encoded HMAC\-SHA1 MAC of a file and write to stdout: \e - openssl mac \-digest SHA1 \e - \-macopt hexkey:000102030405060708090A0B0C0D0E0F10111213 \e - \-in msg.bin HMAC +To create a hex-encoded HMAC\-SHA1 MAC of a file and write to stdout: .PP -To create a SipHash MAC from a file with a binary file output: \e - openssl mac \-macopt hexkey:000102030405060708090A0B0C0D0E0F \e - \-in msg.bin \-out out.bin \-binary SipHash +.Vb 3 +\& openssl mac \-digest SHA1 \e +\& \-macopt hexkey:000102030405060708090A0B0C0D0E0F10111213 \e +\& \-in msg.bin HMAC +.Ve .PP -To create a hex-encoded CMAC\-AES\-128\-CBC MAC from a file:\e - openssl mac \-cipher AES\-128\-CBC \e - \-macopt hexkey:77A77FAF290C1FA30C683DF16BA7A77B \e - \-in msg.bin CMAC +To create a SipHash MAC from a file with a binary file output: +.PP +.Vb 2 +\& openssl mac \-macopt hexkey:000102030405060708090A0B0C0D0E0F \e +\& \-in msg.bin \-out out.bin \-binary SipHash +.Ve +.PP +To create a hex-encoded CMAC\-AES\-128\-CBC MAC from a file: +.PP +.Vb 3 +\& openssl mac \-cipher AES\-128\-CBC \e +\& \-macopt hexkey:77A77FAF290C1FA30C683DF16BA7A77B \e +\& \-in msg.bin CMAC +.Ve .PP To create a hex-encoded KMAC128 MAC from a file with a Customisation String -\&'Tag' and output length of 16: \e - openssl mac \-macopt custom:Tag \-macopt hexkey:40414243444546 \e - \-macopt size:16 \-in msg.bin KMAC128 +\&'Tag' and output length of 16: +.PP +.Vb 2 +\& openssl mac \-macopt custom:Tag \-macopt hexkey:40414243444546 \e +\& \-macopt size:16 \-in msg.bin KMAC128 +.Ve +.PP +To create a hex-encoded GMAC\-AES\-128\-GCM with a IV from a file: .PP -To create a hex-encoded GMAC\-AES\-128\-GCM with a IV from a file: \e - openssl mac \-cipher AES\-128\-GCM \-macopt hexiv:E0E00F19FED7BA0136A797F3 \e - \-macopt hexkey:77A77FAF290C1FA30C683DF16BA7A77B \-in msg.bin GMAC +.Vb 2 +\& openssl mac \-cipher AES\-128\-GCM \-macopt hexiv:E0E00F19FED7BA0136A797F3 \e +\& \-macopt hexkey:77A77FAF290C1FA30C683DF16BA7A77B \-in msg.bin GMAC +.Ve .SH NOTES .IX Header "NOTES" The MAC mechanisms that are available will depend on the options @@ -204,7 +219,7 @@ Use \f(CW\*(C`openssl list \-mac\-algorithms\*(C'\fR to list them. \&\fBEVP_MAC\-Poly1305\fR\|(7) .SH COPYRIGHT .IX Header "COPYRIGHT" -Copyright 2018\-2023 The OpenSSL Project Authors. All Rights Reserved. +Copyright 2018\-2024 The OpenSSL Project Authors. All Rights Reserved. .PP 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 |