summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/man/EVP_des_cbc.3
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lib/libcrypto/man/EVP_des_cbc.3230
1 files changed, 0 insertions, 230 deletions
diff --git a/src/lib/libcrypto/man/EVP_des_cbc.3 b/src/lib/libcrypto/man/EVP_des_cbc.3
deleted file mode 100644
index 7c8a08c7db..0000000000
--- a/src/lib/libcrypto/man/EVP_des_cbc.3
+++ /dev/null
@@ -1,230 +0,0 @@
1.\" $OpenBSD: EVP_des_cbc.3,v 1.2 2024/11/09 22:03:49 schwarze Exp $
2.\" full merge up to:
3.\" OpenSSL EVP_desx_cbc.pod 8fa4d95e Oct 21 11:59:09 2017 +0900
4.\" selective merge up to:
5.\" OpenSSL EVP_des.pod 7c6d372a Nov 20 13:20:01 2018 +0000
6.\"
7.\" This file was written by Ronald Tse <ronald.tse@ribose.com>
8.\" Copyright (c) 2017 The OpenSSL Project. All rights reserved.
9.\"
10.\" Redistribution and use in source and binary forms, with or without
11.\" modification, are permitted provided that the following conditions
12.\" are met:
13.\"
14.\" 1. Redistributions of source code must retain the above copyright
15.\" notice, this list of conditions and the following disclaimer.
16.\"
17.\" 2. Redistributions in binary form must reproduce the above copyright
18.\" notice, this list of conditions and the following disclaimer in
19.\" the documentation and/or other materials provided with the
20.\" distribution.
21.\"
22.\" 3. All advertising materials mentioning features or use of this
23.\" software must display the following acknowledgment:
24.\" "This product includes software developed by the OpenSSL Project
25.\" for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
26.\"
27.\" 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
28.\" endorse or promote products derived from this software without
29.\" prior written permission. For written permission, please contact
30.\" openssl-core@openssl.org.
31.\"
32.\" 5. Products derived from this software may not be called "OpenSSL"
33.\" nor may "OpenSSL" appear in their names without prior written
34.\" permission of the OpenSSL Project.
35.\"
36.\" 6. Redistributions of any form whatsoever must retain the following
37.\" acknowledgment:
38.\" "This product includes software developed by the OpenSSL Project
39.\" for use in the OpenSSL Toolkit (http://www.openssl.org/)"
40.\"
41.\" THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
42.\" EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
43.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
44.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR
45.\" ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
46.\" SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
47.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
48.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
49.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
50.\" STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
51.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
52.\" OF THE POSSIBILITY OF SUCH DAMAGE.
53.\"
54.Dd $Mdocdate: November 9 2024 $
55.Dt EVP_DES_CBC 3
56.Os
57.Sh NAME
58.Nm EVP_des_cbc ,
59.Nm EVP_des_cfb ,
60.Nm EVP_des_cfb1 ,
61.Nm EVP_des_cfb8 ,
62.Nm EVP_des_cfb64 ,
63.Nm EVP_des_ecb ,
64.Nm EVP_des_ofb ,
65.Nm EVP_des_ede ,
66.Nm EVP_des_ede_cbc ,
67.Nm EVP_des_ede_cfb ,
68.Nm EVP_des_ede_cfb64 ,
69.Nm EVP_des_ede_ecb ,
70.Nm EVP_des_ede_ofb ,
71.Nm EVP_des_ede3 ,
72.Nm EVP_des_ede3_cbc ,
73.Nm EVP_des_ede3_cfb ,
74.Nm EVP_des_ede3_cfb1 ,
75.Nm EVP_des_ede3_cfb8 ,
76.Nm EVP_des_ede3_cfb64 ,
77.Nm EVP_des_ede3_ecb ,
78.Nm EVP_des_ede3_ofb ,
79.Nm EVP_desx_cbc
80.Nd EVP DES cipher
81.Sh SYNOPSIS
82.In openssl/evp.h
83.Ft const EVP_CIPHER *
84.Fn EVP_des_cbc void
85.Ft const EVP_CIPHER *
86.Fn EVP_des_cfb void
87.Ft const EVP_CIPHER *
88.Fn EVP_des_cfb1 void
89.Ft const EVP_CIPHER *
90.Fn EVP_des_cfb8 void
91.Ft const EVP_CIPHER *
92.Fn EVP_des_cfb64 void
93.Ft const EVP_CIPHER *
94.Fn EVP_des_ecb void
95.Ft const EVP_CIPHER *
96.Fn EVP_des_ofb void
97.Ft const EVP_CIPHER *
98.Fn EVP_des_ede void
99.Ft const EVP_CIPHER *
100.Fn EVP_des_ede_cbc void
101.Ft const EVP_CIPHER *
102.Fn EVP_des_ede_cfb void
103.Ft const EVP_CIPHER *
104.Fn EVP_des_ede_cfb64 void
105.Ft const EVP_CIPHER *
106.Fn EVP_des_ede_ecb void
107.Ft const EVP_CIPHER *
108.Fn EVP_des_ede_ofb void
109.Ft const EVP_CIPHER *
110.Fn EVP_des_ede3 void
111.Ft const EVP_CIPHER *
112.Fn EVP_des_ede3_cbc void
113.Ft const EVP_CIPHER *
114.Fn EVP_des_ede3_cfb void
115.Ft const EVP_CIPHER *
116.Fn EVP_des_ede3_cfb1 void
117.Ft const EVP_CIPHER *
118.Fn EVP_des_ede3_cfb8 void
119.Ft const EVP_CIPHER *
120.Fn EVP_des_ede3_cfb64 void
121.Ft const EVP_CIPHER *
122.Fn EVP_des_ede3_ecb void
123.Ft const EVP_CIPHER *
124.Fn EVP_des_ede3_ofb void
125.Ft const EVP_CIPHER *
126.Fn EVP_desx_cbc void
127.Sh DESCRIPTION
128These functions provide the DES encryption algorithm in the
129.Xr evp 3
130framework.
131DES is a block cipher operating on 64 bit blocks.
132The key length to be used for
133.Xr EVP_EncryptInit 3
134is 64 bits.
135However, only 56 of these bits are used in the encryption algorithm.
136The least significant bit in each of the eight bytes is only used
137for checking parity.
138Using this algorithm is discouraged because the short key length
139makes it vulnerable to brute force attacks.
140.Pp
141.Fn EVP_des_cbc ,
142.Fn EVP_des_cfb1 ,
143.Fn EVP_des_cfb8 ,
144.Fn EVP_des_cfb64 ,
145.Fn EVP_des_ecb ,
146and
147.Fn EVP_des_ofb
148provide DES in CBC, CFB with 1-bit shift, CFB with 8-bit shift,
149CFB with 64-bit shift, ECB, and OFB modes.
150.Fn EVP_des_cfb
151is an alias for
152.Fn EVP_des_cfb64 ,
153implemented as a macro.
154.Pp
155.Fn EVP_des_ede_cbc ,
156.Fn EVP_des_ede_cfb64 ,
157.Fn EVP_des_ede_ecb ,
158and
159.Fn EVP_des_ede_ofb
160provide two key triple DES in CBC, CFB with 64-bit shift, ECB, and OFB modes.
161.Fn EVP_des_ede_cfb
162is an alias for
163.Fn EVP_des_ede_cfb64 ,
164implemented as a macro.
165.Fn EVP_des_ede
166is an alias for
167.Fn EVP_des_ede_ecb .
168.Pp
169.Fn EVP_des_ede3_cbc ,
170.Fn EVP_des_ede3_cfb1 ,
171.Fn EVP_des_ede3_cfb8 ,
172.Fn EVP_des_ede3_cfb64 ,
173.Fn EVP_des_ede3_ecb ,
174.Fn EVP_des_ede3_ofb
175provide three key triple DES in CBC, CFB with 1-bit shift, CFB with 8-bit
176shift, CFB with 64-bit shift, ECB, and OFB modes.
177.Fn EVP_des_ede3_cfb
178is an alias for
179.Fn EVP_des_ede3_cfb64 ,
180implemented as a macro.
181.Fn EVP_des_ede3
182is an alias for
183.Fn EVP_des_ede3_ecb .
184.Pp
185.Fn EVP_desx_cbc
186provides the DES-X encryption algorithm in CBC mode.
187It uses a key length of 128 bits and acts on blocks of 128 bits.
188.Sh RETURN VALUES
189These functions return an
190.Vt EVP_CIPHER
191structure that provides the implementation of the symmetric cipher.
192.Sh SEE ALSO
193.Xr evp 3 ,
194.Xr EVP_EncryptInit 3
195.Sh HISTORY
196.Fn EVP_des_cbc ,
197.Fn EVP_des_cfb ,
198.Fn EVP_des_ecb ,
199.Fn EVP_des_ofb ,
200.Fn EVP_des_ede ,
201.Fn EVP_des_ede_cbc ,
202.Fn EVP_des_ede_cfb ,
203.Fn EVP_des_ede_ofb ,
204.Fn EVP_des_ede3 ,
205.Fn EVP_des_ede3_cbc ,
206.Fn EVP_des_ede3_cfb ,
207and
208.Fn EVP_des_ede3_ofb
209first appeared in SSLeay 0.5.1.
210.Fn EVP_desx_cbc
211first appeared in SSLeay 0.6.2.
212These functions have been available since
213.Ox 2.4 .
214.Pp
215.Fn EVP_des_ede_ecb
216and
217.Fn EVP_des_ede3_ecb
218first appeared in OpenSSL 0.9.7 and have been available since
219.Ox 3.2 .
220.Pp
221.Fn EVP_des_cfb1 ,
222.Fn EVP_des_cfb8 ,
223.Fn EVP_des_cfb64 ,
224.Fn EVP_des_ede_cfb64 ,
225.Fn EVP_des_ede3_cfb1 ,
226.Fn EVP_des_ede3_cfb8 ,
227and
228.Fn EVP_des_ede3_cfb64
229first appeared in OpenSSL 0.9.7e and have been available since
230.Ox 3.8 .