diff options
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libcrypto/man/EVP_EncryptInit.3 | 79 | ||||
| -rw-r--r-- | src/lib/libcrypto/man/EVP_aes_128_cbc.3 | 311 | ||||
| -rw-r--r-- | src/lib/libcrypto/man/Makefile | 3 | ||||
| -rw-r--r-- | src/lib/libcrypto/man/evp.3 | 3 |
4 files changed, 322 insertions, 74 deletions
diff --git a/src/lib/libcrypto/man/EVP_EncryptInit.3 b/src/lib/libcrypto/man/EVP_EncryptInit.3 index 704a2016ed..10d30c4cf0 100644 --- a/src/lib/libcrypto/man/EVP_EncryptInit.3 +++ b/src/lib/libcrypto/man/EVP_EncryptInit.3 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | .\" $OpenBSD: EVP_EncryptInit.3,v 1.27 2019/03/18 05:56:24 schwarze Exp $ | 1 | .\" $OpenBSD: EVP_EncryptInit.3,v 1.28 2019/03/18 11:38:16 schwarze Exp $ |
| 2 | .\" full merge up to: OpenSSL 5211e094 Nov 11 14:39:11 2014 -0800 | 2 | .\" full merge up to: OpenSSL 5211e094 Nov 11 14:39:11 2014 -0800 |
| 3 | .\" selective merge up to: OpenSSL 16cfc2c9 Mar 8 22:30:28 2018 +0100 | 3 | .\" selective merge up to: OpenSSL 16cfc2c9 Mar 8 22:30:28 2018 +0100 |
| 4 | .\" | 4 | .\" |
| @@ -138,26 +138,6 @@ | |||
| 138 | .Nm EVP_cast5_ecb , | 138 | .Nm EVP_cast5_ecb , |
| 139 | .Nm EVP_cast5_cfb , | 139 | .Nm EVP_cast5_cfb , |
| 140 | .Nm EVP_cast5_ofb , | 140 | .Nm EVP_cast5_ofb , |
| 141 | .Nm EVP_aes_128_cbc , | ||
| 142 | .Nm EVP_aes_128_ecb , | ||
| 143 | .Nm EVP_aes_128_cfb , | ||
| 144 | .Nm EVP_aes_128_ofb , | ||
| 145 | .Nm EVP_aes_192_cbc , | ||
| 146 | .Nm EVP_aes_192_ecb , | ||
| 147 | .Nm EVP_aes_192_cfb , | ||
| 148 | .Nm EVP_aes_192_ofb , | ||
| 149 | .Nm EVP_aes_256_cbc , | ||
| 150 | .Nm EVP_aes_256_ecb , | ||
| 151 | .Nm EVP_aes_256_cfb , | ||
| 152 | .Nm EVP_aes_256_ofb , | ||
| 153 | .Nm EVP_aes_128_gcm , | ||
| 154 | .Nm EVP_aes_192_gcm , | ||
| 155 | .Nm EVP_aes_256_gcm , | ||
| 156 | .Nm EVP_aes_128_ccm , | ||
| 157 | .Nm EVP_aes_192_ccm , | ||
| 158 | .Nm EVP_aes_256_ccm , | ||
| 159 | .Nm EVP_aes_128_cbc_hmac_sha1 , | ||
| 160 | .Nm EVP_aes_256_cbc_hmac_sha1 , | ||
| 161 | .Nm EVP_chacha20 | 141 | .Nm EVP_chacha20 |
| 162 | .Nd EVP cipher routines | 142 | .Nd EVP cipher routines |
| 163 | .Sh SYNOPSIS | 143 | .Sh SYNOPSIS |
| @@ -471,7 +451,7 @@ points to an unused object on the stack, it must be initialized with | |||
| 471 | before calling this function. | 451 | before calling this function. |
| 472 | .Fa type | 452 | .Fa type |
| 473 | is normally supplied by a function such as | 453 | is normally supplied by a function such as |
| 474 | .Fn EVP_aes_256_cbc . | 454 | .Xr EVP_aes_256_cbc 3 . |
| 475 | If | 455 | If |
| 476 | .Fa impl | 456 | .Fa impl |
| 477 | is | 457 | is |
| @@ -905,27 +885,6 @@ All algorithms have a fixed key length unless otherwise stated. | |||
| 905 | .It Fn EVP_enc_null | 885 | .It Fn EVP_enc_null |
| 906 | Null cipher: does nothing. | 886 | Null cipher: does nothing. |
| 907 | .It Xo | 887 | .It Xo |
| 908 | .Fn EVP_aes_128_cbc , | ||
| 909 | .Fn EVP_aes_128_ecb , | ||
| 910 | .Fn EVP_aes_128_cfb , | ||
| 911 | .Fn EVP_aes_128_ofb | ||
| 912 | .Xc | ||
| 913 | AES with a 128-bit key in CBC, ECB, CFB and OFB modes respectively. | ||
| 914 | .It Xo | ||
| 915 | .Fn EVP_aes_192_cbc , | ||
| 916 | .Fn EVP_aes_192_ecb , | ||
| 917 | .Fn EVP_aes_192_cfb , | ||
| 918 | .Fn EVP_aes_192_ofb | ||
| 919 | .Xc | ||
| 920 | AES with a 192-bit key in CBC, ECB, CFB and OFB modes respectively. | ||
| 921 | .It Xo | ||
| 922 | .Fn EVP_aes_256_cbc , | ||
| 923 | .Fn EVP_aes_256_ecb , | ||
| 924 | .Fn EVP_aes_256_cfb , | ||
| 925 | .Fn EVP_aes_256_ofb | ||
| 926 | .Xc | ||
| 927 | AES with a 256-bit key in CBC, ECB, CFB and OFB modes respectively. | ||
| 928 | .It Xo | ||
| 929 | .Fn EVP_des_cbc , | 888 | .Fn EVP_des_cbc , |
| 930 | .Fn EVP_des_ecb , | 889 | .Fn EVP_des_ecb , |
| 931 | .Fn EVP_des_cfb , | 890 | .Fn EVP_des_cfb , |
| @@ -1004,29 +963,13 @@ This is a variable key length cipher. | |||
| 1004 | .Xc | 963 | .Xc |
| 1005 | CAST encryption algorithm in CBC, ECB, CFB and OFB modes respectively. | 964 | CAST encryption algorithm in CBC, ECB, CFB and OFB modes respectively. |
| 1006 | This is a variable key length cipher. | 965 | This is a variable key length cipher. |
| 1007 | .It Xo | ||
| 1008 | .Fn EVP_aes_128_gcm , | ||
| 1009 | .Fn EVP_aes_192_gcm , | ||
| 1010 | .Fn EVP_aes_256_gcm | ||
| 1011 | .Xc | ||
| 1012 | AES Galois Counter Mode (GCM) for 128, 192 and 256 bit keys respectively. | ||
| 1013 | These ciphers require additional control operations to function | ||
| 1014 | correctly: see the GCM mode section below for details. | ||
| 1015 | .It Xo | ||
| 1016 | .Fn EVP_aes_128_ccm , | ||
| 1017 | .Fn EVP_aes_192_ccm , | ||
| 1018 | .Fn EVP_aes_256_ccm | ||
| 1019 | .Xc | ||
| 1020 | AES Counter with CBC-MAC Mode (CCM) for 128, 192 and 256 bit keys | ||
| 1021 | respectively. | ||
| 1022 | These ciphers require additional control operations to function | ||
| 1023 | correctly: see CCM mode section below for details. | ||
| 1024 | .It Fn EVP_chacha20 | ||
| 1025 | The ChaCha20 stream cipher. | 966 | The ChaCha20 stream cipher. |
| 1026 | The key length is 256 bits, the IV is 96 bits long. | 967 | The key length is 256 bits, the IV is 96 bits long. |
| 1027 | .El | 968 | .El |
| 1028 | .Pp | 969 | .Pp |
| 1029 | See also | 970 | See also |
| 971 | .Xr EVP_aes_128_cbc 3 | ||
| 972 | and | ||
| 1030 | .Xr EVP_sm4_cbc 3 . | 973 | .Xr EVP_sm4_cbc 3 . |
| 1031 | .Ss GCM mode | 974 | .Ss GCM mode |
| 1032 | For GCM mode ciphers, the behaviour of the EVP interface | 975 | For GCM mode ciphers, the behaviour of the EVP interface |
| @@ -1231,6 +1174,7 @@ do_crypt(FILE *in, FILE *out, int do_encrypt) | |||
| 1231 | .Ed | 1174 | .Ed |
| 1232 | .Sh SEE ALSO | 1175 | .Sh SEE ALSO |
| 1233 | .Xr evp 3 , | 1176 | .Xr evp 3 , |
| 1177 | .Xr EVP_aes_128_cbc 3 , | ||
| 1234 | .Xr EVP_sm4_cbc 3 | 1178 | .Xr EVP_sm4_cbc 3 |
| 1235 | .Sh HISTORY | 1179 | .Sh HISTORY |
| 1236 | .Fn EVP_EncryptInit , | 1180 | .Fn EVP_EncryptInit , |
| @@ -1343,17 +1287,8 @@ first appeared in OpenSSL 0.9.8b. | |||
| 1343 | These functions have been available since | 1287 | These functions have been available since |
| 1344 | .Ox 4.5 . | 1288 | .Ox 4.5 . |
| 1345 | .Pp | 1289 | .Pp |
| 1346 | .Fn EVP_rc4_hmac_md5 , | 1290 | .Fn EVP_rc4_hmac_md5 |
| 1347 | .Fn EVP_aes_128_gcm , | 1291 | first appeared in OpenSSL 1.0.1 and has been available since |
| 1348 | .Fn EVP_aes_192_gcm , | ||
| 1349 | .Fn EVP_aes_256_gcm , | ||
| 1350 | .Fn EVP_aes_128_ccm , | ||
| 1351 | .Fn EVP_aes_192_ccm , | ||
| 1352 | .Fn EVP_aes_256_ccm , | ||
| 1353 | .Fn EVP_aes_128_cbc_hmac_sha1 , | ||
| 1354 | and | ||
| 1355 | .Fn EVP_aes_256_cbc_hmac_sha1 | ||
| 1356 | first appeared in OpenSSL 1.0.1 and have been available since | ||
| 1357 | .Ox 5.3 . | 1292 | .Ox 5.3 . |
| 1358 | .Pp | 1293 | .Pp |
| 1359 | .Fn EVP_CIPHER_CTX_reset | 1294 | .Fn EVP_CIPHER_CTX_reset |
diff --git a/src/lib/libcrypto/man/EVP_aes_128_cbc.3 b/src/lib/libcrypto/man/EVP_aes_128_cbc.3 new file mode 100644 index 0000000000..8c01f07f55 --- /dev/null +++ b/src/lib/libcrypto/man/EVP_aes_128_cbc.3 | |||
| @@ -0,0 +1,311 @@ | |||
| 1 | .\" $OpenBSD: EVP_aes_128_cbc.3,v 1.1 2019/03/18 11:38:16 schwarze Exp $ | ||
| 2 | .\" selective merge up to: OpenSSL 7c6d372a Nov 20 13:20:01 2018 +0000 | ||
| 3 | .\" | ||
| 4 | .\" This file was written by Ronald Tse <ronald.tse@ribose.com> | ||
| 5 | .\" Copyright (c) 2017 The OpenSSL Project. All rights reserved. | ||
| 6 | .\" | ||
| 7 | .\" Redistribution and use in source and binary forms, with or without | ||
| 8 | .\" modification, are permitted provided that the following conditions | ||
| 9 | .\" are met: | ||
| 10 | .\" | ||
| 11 | .\" 1. Redistributions of source code must retain the above copyright | ||
| 12 | .\" notice, this list of conditions and the following disclaimer. | ||
| 13 | .\" | ||
| 14 | .\" 2. Redistributions in binary form must reproduce the above copyright | ||
| 15 | .\" notice, this list of conditions and the following disclaimer in | ||
| 16 | .\" the documentation and/or other materials provided with the | ||
| 17 | .\" distribution. | ||
| 18 | .\" | ||
| 19 | .\" 3. All advertising materials mentioning features or use of this | ||
| 20 | .\" software must display the following acknowledgment: | ||
| 21 | .\" "This product includes software developed by the OpenSSL Project | ||
| 22 | .\" for use in the OpenSSL Toolkit. (http://www.openssl.org/)" | ||
| 23 | .\" | ||
| 24 | .\" 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to | ||
| 25 | .\" endorse or promote products derived from this software without | ||
| 26 | .\" prior written permission. For written permission, please contact | ||
| 27 | .\" openssl-core@openssl.org. | ||
| 28 | .\" | ||
| 29 | .\" 5. Products derived from this software may not be called "OpenSSL" | ||
| 30 | .\" nor may "OpenSSL" appear in their names without prior written | ||
| 31 | .\" permission of the OpenSSL Project. | ||
| 32 | .\" | ||
| 33 | .\" 6. Redistributions of any form whatsoever must retain the following | ||
| 34 | .\" acknowledgment: | ||
| 35 | .\" "This product includes software developed by the OpenSSL Project | ||
| 36 | .\" for use in the OpenSSL Toolkit (http://www.openssl.org/)" | ||
| 37 | .\" | ||
| 38 | .\" THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY | ||
| 39 | .\" EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 40 | .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
| 41 | .\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR | ||
| 42 | .\" ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
| 43 | .\" SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
| 44 | .\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
| 45 | .\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 46 | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
| 47 | .\" STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
| 48 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | ||
| 49 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 50 | .\" | ||
| 51 | .Dd $Mdocdate: March 18 2019 $ | ||
| 52 | .Dt EVP_AES_128_CBC 3 | ||
| 53 | .Os | ||
| 54 | .Sh NAME | ||
| 55 | .Nm EVP_aes_128_cbc , | ||
| 56 | .Nm EVP_aes_192_cbc , | ||
| 57 | .Nm EVP_aes_256_cbc , | ||
| 58 | .Nm EVP_aes_128_cfb1 , | ||
| 59 | .Nm EVP_aes_192_cfb1 , | ||
| 60 | .Nm EVP_aes_256_cfb1 , | ||
| 61 | .Nm EVP_aes_128_cfb8 , | ||
| 62 | .Nm EVP_aes_192_cfb8 , | ||
| 63 | .Nm EVP_aes_256_cfb8 , | ||
| 64 | .Nm EVP_aes_128_cfb128 , | ||
| 65 | .Nm EVP_aes_192_cfb128 , | ||
| 66 | .Nm EVP_aes_256_cfb128 , | ||
| 67 | .Nm EVP_aes_128_cfb , | ||
| 68 | .Nm EVP_aes_192_cfb , | ||
| 69 | .Nm EVP_aes_256_cfb , | ||
| 70 | .Nm EVP_aes_128_ctr , | ||
| 71 | .Nm EVP_aes_192_ctr , | ||
| 72 | .Nm EVP_aes_256_ctr , | ||
| 73 | .Nm EVP_aes_128_ecb , | ||
| 74 | .Nm EVP_aes_192_ecb , | ||
| 75 | .Nm EVP_aes_256_ecb , | ||
| 76 | .Nm EVP_aes_128_ofb , | ||
| 77 | .Nm EVP_aes_192_ofb , | ||
| 78 | .Nm EVP_aes_256_ofb , | ||
| 79 | .Nm EVP_aes_128_cbc_hmac_sha1 , | ||
| 80 | .Nm EVP_aes_256_cbc_hmac_sha1 , | ||
| 81 | .Nm EVP_aes_128_ccm , | ||
| 82 | .Nm EVP_aes_192_ccm , | ||
| 83 | .Nm EVP_aes_256_ccm , | ||
| 84 | .Nm EVP_aes_128_gcm , | ||
| 85 | .Nm EVP_aes_192_gcm , | ||
| 86 | .Nm EVP_aes_256_gcm , | ||
| 87 | .Nm EVP_aes_128_wrap , | ||
| 88 | .Nm EVP_aes_192_wrap , | ||
| 89 | .Nm EVP_aes_256_wrap , | ||
| 90 | .Nm EVP_aes_128_xts , | ||
| 91 | .Nm EVP_aes_256_xts | ||
| 92 | .Nd EVP AES cipher | ||
| 93 | .Sh SYNOPSIS | ||
| 94 | .In openssl/evp.h | ||
| 95 | .Ft const EVP_CIPHER * | ||
| 96 | .Fn EVP_aes_128_cbc void | ||
| 97 | .Ft const EVP_CIPHER * | ||
| 98 | .Fn EVP_aes_192_cbc void | ||
| 99 | .Ft const EVP_CIPHER * | ||
| 100 | .Fn EVP_aes_256_cbc void | ||
| 101 | .Ft const EVP_CIPHER * | ||
| 102 | .Fn EVP_aes_128_cfb1 void | ||
| 103 | .Ft const EVP_CIPHER * | ||
| 104 | .Fn EVP_aes_192_cfb1 void | ||
| 105 | .Ft const EVP_CIPHER * | ||
| 106 | .Fn EVP_aes_256_cfb1 void | ||
| 107 | .Ft const EVP_CIPHER * | ||
| 108 | .Fn EVP_aes_128_cfb8 void | ||
| 109 | .Ft const EVP_CIPHER * | ||
| 110 | .Fn EVP_aes_192_cfb8 void | ||
| 111 | .Ft const EVP_CIPHER * | ||
| 112 | .Fn EVP_aes_256_cfb8 void | ||
| 113 | .Ft const EVP_CIPHER * | ||
| 114 | .Fn EVP_aes_128_cfb128 void | ||
| 115 | .Ft const EVP_CIPHER * | ||
| 116 | .Fn EVP_aes_192_cfb128 void | ||
| 117 | .Ft const EVP_CIPHER * | ||
| 118 | .Fn EVP_aes_256_cfb128 void | ||
| 119 | .Ft const EVP_CIPHER * | ||
| 120 | .Fn EVP_aes_128_cfb void | ||
| 121 | .Ft const EVP_CIPHER * | ||
| 122 | .Fn EVP_aes_192_cfb void | ||
| 123 | .Ft const EVP_CIPHER * | ||
| 124 | .Fn EVP_aes_256_cfb void | ||
| 125 | .Ft const EVP_CIPHER * | ||
| 126 | .Fn EVP_aes_128_ctr void | ||
| 127 | .Ft const EVP_CIPHER * | ||
| 128 | .Fn EVP_aes_192_ctr void | ||
| 129 | .Ft const EVP_CIPHER * | ||
| 130 | .Fn EVP_aes_256_ctr void | ||
| 131 | .Ft const EVP_CIPHER * | ||
| 132 | .Fn EVP_aes_128_ecb void | ||
| 133 | .Ft const EVP_CIPHER * | ||
| 134 | .Fn EVP_aes_192_ecb void | ||
| 135 | .Ft const EVP_CIPHER * | ||
| 136 | .Fn EVP_aes_256_ecb void | ||
| 137 | .Ft const EVP_CIPHER * | ||
| 138 | .Fn EVP_aes_128_ofb void | ||
| 139 | .Ft const EVP_CIPHER * | ||
| 140 | .Fn EVP_aes_192_ofb void | ||
| 141 | .Ft const EVP_CIPHER * | ||
| 142 | .Fn EVP_aes_256_ofb void | ||
| 143 | .Ft const EVP_CIPHER * | ||
| 144 | .Fn EVP_aes_128_cbc_hmac_sha1 void | ||
| 145 | .Ft const EVP_CIPHER * | ||
| 146 | .Fn EVP_aes_256_cbc_hmac_sha1 void | ||
| 147 | .Ft const EVP_CIPHER * | ||
| 148 | .Fn EVP_aes_128_ccm void | ||
| 149 | .Ft const EVP_CIPHER * | ||
| 150 | .Fn EVP_aes_192_ccm void | ||
| 151 | .Ft const EVP_CIPHER * | ||
| 152 | .Fn EVP_aes_256_ccm void | ||
| 153 | .Ft const EVP_CIPHER * | ||
| 154 | .Fn EVP_aes_128_gcm void | ||
| 155 | .Ft const EVP_CIPHER * | ||
| 156 | .Fn EVP_aes_192_gcm void | ||
| 157 | .Ft const EVP_CIPHER * | ||
| 158 | .Fn EVP_aes_256_gcm void | ||
| 159 | .Ft const EVP_CIPHER * | ||
| 160 | .Fn EVP_aes_128_wrap void | ||
| 161 | .Ft const EVP_CIPHER * | ||
| 162 | .Fn EVP_aes_192_wrap void | ||
| 163 | .Ft const EVP_CIPHER * | ||
| 164 | .Fn EVP_aes_256_wrap void | ||
| 165 | .Ft const EVP_CIPHER * | ||
| 166 | .Fn EVP_aes_128_xts void | ||
| 167 | .Ft const EVP_CIPHER * | ||
| 168 | .Fn EVP_aes_256_xts void | ||
| 169 | .Sh DESCRIPTION | ||
| 170 | These functions provide the AES encryption algorithm in the | ||
| 171 | .Xr evp 3 | ||
| 172 | framework. | ||
| 173 | .Pp | ||
| 174 | .Fn EVP_aes_128_cbc , | ||
| 175 | .Fn EVP_aes_192_cbc , | ||
| 176 | .Fn EVP_aes_256_cbc , | ||
| 177 | .Fn EVP_aes_128_cfb1 , | ||
| 178 | .Fn EVP_aes_192_cfb1 , | ||
| 179 | .Fn EVP_aes_256_cfb1 , | ||
| 180 | .Fn EVP_aes_128_cfb8 , | ||
| 181 | .Fn EVP_aes_192_cfb8 , | ||
| 182 | .Fn EVP_aes_256_cfb8 , | ||
| 183 | .Fn EVP_aes_128_cfb128 , | ||
| 184 | .Fn EVP_aes_192_cfb128 , | ||
| 185 | .Fn EVP_aes_256_cfb128 , | ||
| 186 | .Fn EVP_aes_128_ctr , | ||
| 187 | .Fn EVP_aes_192_ctr , | ||
| 188 | .Fn EVP_aes_256_ctr , | ||
| 189 | .Fn EVP_aes_128_ecb , | ||
| 190 | .Fn EVP_aes_192_ecb , | ||
| 191 | .Fn EVP_aes_256_ecb , | ||
| 192 | .Fn EVP_aes_128_ofb , | ||
| 193 | .Fn EVP_aes_192_ofb , | ||
| 194 | and | ||
| 195 | .Fn EVP_aes_256_ofb | ||
| 196 | provide AES for 128, 192, and 256 bit keys in the following modes: | ||
| 197 | CBC, CFB with 1-bit shift, CFB with 8-bit shift, CFB with 128-bit shift, | ||
| 198 | CTR, ECB, and OFB. | ||
| 199 | .Pp | ||
| 200 | .Fn EVP_aes_128_cfb , | ||
| 201 | .Fn EVP_aes_192_cfb , | ||
| 202 | and | ||
| 203 | .Fn EVP_aes_256_cfb | ||
| 204 | are aliases for | ||
| 205 | .Fn EVP_aes_128_cfb128 , | ||
| 206 | .Fn EVP_aes_192_cfb128 , | ||
| 207 | and | ||
| 208 | .Fn EVP_aes_256_cfb128 . | ||
| 209 | .Pp | ||
| 210 | .Fn EVP_aes_128_cbc_hmac_sha1 | ||
| 211 | and | ||
| 212 | .Fn EVP_aes_256_cbc_hmac_sha1 | ||
| 213 | provide authenticated encryption with AES in CBC mode using SHA-1 as HMAC, | ||
| 214 | with keys of 128 and 256 bits length respectively. | ||
| 215 | The authentication tag is 160 bits long. | ||
| 216 | This is not intended for usage outside of TLS and requires | ||
| 217 | calling of some undocumented control functions. | ||
| 218 | These ciphers do not conform to the EVP AEAD interface. | ||
| 219 | .Pp | ||
| 220 | .Fn EVP_aes_128_ccm , | ||
| 221 | .Fn EVP_aes_192_ccm , | ||
| 222 | .Fn EVP_aes_256_ccm , | ||
| 223 | .Fn EVP_aes_128_gcm , | ||
| 224 | .Fn EVP_aes_192_gcm , | ||
| 225 | and | ||
| 226 | .Fn EVP_aes_256_gcm | ||
| 227 | provide AES for 128, 192 and 256 bit keys in CBC-MAC Mode (CCM) | ||
| 228 | and Galois Counter Mode (GCM), respectively. | ||
| 229 | These ciphers require additional control operations to function | ||
| 230 | correctly; see | ||
| 231 | .Xr EVP_EncryptInit 3 | ||
| 232 | for details. | ||
| 233 | .Pp | ||
| 234 | .Fn EVP_aes_128_wrap , | ||
| 235 | .Fn EVP_aes_192_wrap , | ||
| 236 | and | ||
| 237 | .Fn EVP_aes_256_wrap | ||
| 238 | provide AES key wrap with 128, 192 and 256 bit keys | ||
| 239 | according to RFC 3394 section 2.2.1 ("wrap"). | ||
| 240 | .Pp | ||
| 241 | .Fn EVP_aes_128_xts | ||
| 242 | and | ||
| 243 | .Fn EVP_aes_256_xts | ||
| 244 | provide XEX-based tweaked-codebook mode with ciphertext stealing (XTS-AES) | ||
| 245 | as specified in IEEE Std. 1619-2007 and described in NIST SP 800-38E. | ||
| 246 | It was designed for encrypting data on a storage device, | ||
| 247 | provides confidentiality but not authentication of data, | ||
| 248 | and requires a key of double length for protection of a certain key size. | ||
| 249 | In particular, XTS-AES-128 takes input of a 256-bit key to achieve | ||
| 250 | AES 128-bit security, and XTS-AES-256 takes input of a 512-bit key | ||
| 251 | to achieve AES 256-bit security. | ||
| 252 | .Sh RETURN VALUES | ||
| 253 | These functions return an | ||
| 254 | .Vt EVP_CIPHER | ||
| 255 | structure that provides the implementation of the symmetric cipher. | ||
| 256 | .Sh SEE ALSO | ||
| 257 | .Xr evp 3 , | ||
| 258 | .Xr EVP_EncryptInit 3 | ||
| 259 | .Sh HISTORY | ||
| 260 | .Fn EVP_aes_128_cbc , | ||
| 261 | .Fn EVP_aes_192_cbc , | ||
| 262 | .Fn EVP_aes_256_cbc , | ||
| 263 | .Fn EVP_aes_128_cfb , | ||
| 264 | .Fn EVP_aes_192_cfb , | ||
| 265 | .Fn EVP_aes_256_cfb , | ||
| 266 | .Fn EVP_aes_128_ebc , | ||
| 267 | .Fn EVP_aes_192_ebc , | ||
| 268 | .Fn EVP_aes_256_ebc , | ||
| 269 | .Fn EVP_aes_128_ofb , | ||
| 270 | .Fn EVP_aes_192_ofb , | ||
| 271 | and | ||
| 272 | .Fn EVP_aes_256_ofb | ||
| 273 | first appeared in OpenSSL 0.9.7 and have been available since | ||
| 274 | .Ox 3.2 . | ||
| 275 | .Pp | ||
| 276 | .Fn EVP_aes_128_cfb1 , | ||
| 277 | .Fn EVP_aes_192_cfb1 , | ||
| 278 | .Fn EVP_aes_256_cfb1 , | ||
| 279 | .Fn EVP_aes_128_cfb8 , | ||
| 280 | .Fn EVP_aes_192_cfb8 , | ||
| 281 | .Fn EVP_aes_256_cfb8 , | ||
| 282 | .Fn EVP_aes_128_cfb128 , | ||
| 283 | .Fn EVP_aes_192_cfb128 , | ||
| 284 | and | ||
| 285 | .Fn EVP_aes_256_cfb128 | ||
| 286 | first appeared in OpenSSL 0.9.7e and have been available since | ||
| 287 | .Ox 3.8 . | ||
| 288 | .Pp | ||
| 289 | .Fn EVP_aes_128_ctr , | ||
| 290 | .Fn EVP_aes_192_ctr , | ||
| 291 | .Fn EVP_aes_256_ctr , | ||
| 292 | .Fn EVP_aes_128_cbc_hmac_sha1 , | ||
| 293 | .Fn EVP_aes_256_cbc_hmac_sha1 , | ||
| 294 | .Fn EVP_aes_128_ccm , | ||
| 295 | .Fn EVP_aes_192_ccm , | ||
| 296 | .Fn EVP_aes_256_ccm , | ||
| 297 | .Fn EVP_aes_128_gcm , | ||
| 298 | .Fn EVP_aes_192_gcm , | ||
| 299 | .Fn EVP_aes_256_gcm , | ||
| 300 | .Fn EVP_aes_128_xts , | ||
| 301 | and | ||
| 302 | .Fn EVP_aes_256_xts | ||
| 303 | first appeared in OpenSSL 1.0.1 and have been available since | ||
| 304 | .Ox 5.3 . | ||
| 305 | .Pp | ||
| 306 | .Fn EVP_aes_128_wrap , | ||
| 307 | .Fn EVP_aes_192_wrap , | ||
| 308 | and | ||
| 309 | .Fn EVP_aes_256_wrap | ||
| 310 | first appeared in OpenSSL 1.0.2 and have been available since | ||
| 311 | .Ox 6.5 . | ||
diff --git a/src/lib/libcrypto/man/Makefile b/src/lib/libcrypto/man/Makefile index 79ada9713d..884e5257ef 100644 --- a/src/lib/libcrypto/man/Makefile +++ b/src/lib/libcrypto/man/Makefile | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | # $OpenBSD: Makefile,v 1.144 2019/03/18 05:56:24 schwarze Exp $ | 1 | # $OpenBSD: Makefile,v 1.145 2019/03/18 11:38:16 schwarze Exp $ |
| 2 | 2 | ||
| 3 | .include <bsd.own.mk> | 3 | .include <bsd.own.mk> |
| 4 | 4 | ||
| @@ -151,6 +151,7 @@ MAN= \ | |||
| 151 | EVP_SealInit.3 \ | 151 | EVP_SealInit.3 \ |
| 152 | EVP_SignInit.3 \ | 152 | EVP_SignInit.3 \ |
| 153 | EVP_VerifyInit.3 \ | 153 | EVP_VerifyInit.3 \ |
| 154 | EVP_aes_128_cbc.3 \ | ||
| 154 | EVP_sm4_cbc.3 \ | 155 | EVP_sm4_cbc.3 \ |
| 155 | EXTENDED_KEY_USAGE_new.3 \ | 156 | EXTENDED_KEY_USAGE_new.3 \ |
| 156 | GENERAL_NAME_new.3 \ | 157 | GENERAL_NAME_new.3 \ |
diff --git a/src/lib/libcrypto/man/evp.3 b/src/lib/libcrypto/man/evp.3 index a5a2a49164..6dbd884c72 100644 --- a/src/lib/libcrypto/man/evp.3 +++ b/src/lib/libcrypto/man/evp.3 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | .\" $OpenBSD: evp.3,v 1.6 2019/03/18 05:56:24 schwarze Exp $ | 1 | .\" $OpenBSD: evp.3,v 1.7 2019/03/18 11:38:16 schwarze Exp $ |
| 2 | .\" OpenSSL a9c85cea Nov 11 09:33:55 2016 +0100 | 2 | .\" OpenSSL a9c85cea Nov 11 09:33:55 2016 +0100 |
| 3 | .\" | 3 | .\" |
| 4 | .\" This file was written by Ulf Moeller <ulf@openssl.org>, | 4 | .\" This file was written by Ulf Moeller <ulf@openssl.org>, |
| @@ -182,6 +182,7 @@ operations are more efficient using the high level interfaces. | |||
| 182 | .Sh SEE ALSO | 182 | .Sh SEE ALSO |
| 183 | .Xr ENGINE_register_RSA 3 , | 183 | .Xr ENGINE_register_RSA 3 , |
| 184 | .Xr EVP_AEAD_CTX_init 3 , | 184 | .Xr EVP_AEAD_CTX_init 3 , |
| 185 | .Xr EVP_aes_128_cbc 3 , | ||
| 185 | .Xr EVP_BytesToKey 3 , | 186 | .Xr EVP_BytesToKey 3 , |
| 186 | .Xr EVP_DigestInit 3 , | 187 | .Xr EVP_DigestInit 3 , |
| 187 | .Xr EVP_DigestSignInit 3 , | 188 | .Xr EVP_DigestSignInit 3 , |
