summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorschwarze <>2019-03-21 14:15:13 +0000
committerschwarze <>2019-03-21 14:15:13 +0000
commit65eca37493d312bc1b0570e76d99874a39b2d52f (patch)
treef2f49b6ab6e5dd65fb5cd69a2502c2dd08695122 /src/lib
parent576239de54829945d45317b356b2866e95c3b9b6 (diff)
downloadopenbsd-65eca37493d312bc1b0570e76d99874a39b2d52f.tar.gz
openbsd-65eca37493d312bc1b0570e76d99874a39b2d52f.tar.bz2
openbsd-65eca37493d312bc1b0570e76d99874a39b2d52f.zip
import EVP_camellia_128_cbc(3) from OpenSSL 1.1.1,
still under a free license, tweaked by me
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libcrypto/man/EVP_EncryptInit.34
-rw-r--r--src/lib/libcrypto/man/EVP_camellia_128_cbc.3149
-rw-r--r--src/lib/libcrypto/man/Makefile3
-rw-r--r--src/lib/libcrypto/man/evp.33
4 files changed, 156 insertions, 3 deletions
diff --git a/src/lib/libcrypto/man/EVP_EncryptInit.3 b/src/lib/libcrypto/man/EVP_EncryptInit.3
index ead07dbb2b..5109e2e50e 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.33 2019/03/21 13:37:25 schwarze Exp $ 1.\" $OpenBSD: EVP_EncryptInit.3,v 1.34 2019/03/21 14:15:13 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.\" EVP_bf_cbc.pod EVP_cast5_cbc.pod EVP_idea_cbc.pod EVP_rc2_cbc.pod 3.\" EVP_bf_cbc.pod EVP_cast5_cbc.pod EVP_idea_cbc.pod EVP_rc2_cbc.pod
4.\" 7c6d372a Nov 20 13:20:01 2018 +0000 4.\" 7c6d372a Nov 20 13:20:01 2018 +0000
@@ -986,6 +986,7 @@ The key length is 256 bits, the IV is 96 bits long.
986.Pp 986.Pp
987See also 987See also
988.Xr EVP_aes_128_cbc 3 , 988.Xr EVP_aes_128_cbc 3 ,
989.Xr EVP_camellia_128_cbc 3 ,
989.Xr EVP_des_cbc 3 , 990.Xr EVP_des_cbc 3 ,
990.Xr EVP_rc4 3 , 991.Xr EVP_rc4 3 ,
991and 992and
@@ -1194,6 +1195,7 @@ do_crypt(FILE *in, FILE *out, int do_encrypt)
1194.Sh SEE ALSO 1195.Sh SEE ALSO
1195.Xr evp 3 , 1196.Xr evp 3 ,
1196.Xr EVP_aes_128_cbc 3 , 1197.Xr EVP_aes_128_cbc 3 ,
1198.Xr EVP_camellia_128_cbc 3 ,
1197.Xr EVP_des_cbc 3 , 1199.Xr EVP_des_cbc 3 ,
1198.Xr EVP_rc4 3 , 1200.Xr EVP_rc4 3 ,
1199.Xr EVP_sm4_cbc 3 1201.Xr EVP_sm4_cbc 3
diff --git a/src/lib/libcrypto/man/EVP_camellia_128_cbc.3 b/src/lib/libcrypto/man/EVP_camellia_128_cbc.3
new file mode 100644
index 0000000000..dd7f15d86c
--- /dev/null
+++ b/src/lib/libcrypto/man/EVP_camellia_128_cbc.3
@@ -0,0 +1,149 @@
1.\" $OpenBSD: EVP_camellia_128_cbc.3,v 1.1 2019/03/21 14:15:13 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 21 2019 $
52.Dt EVP_CAMELLIA_128_CBC 3
53.Os
54.Sh NAME
55.Nm EVP_camellia_128_cbc ,
56.Nm EVP_camellia_192_cbc ,
57.Nm EVP_camellia_256_cbc ,
58.Nm EVP_camellia_128_cfb ,
59.Nm EVP_camellia_192_cfb ,
60.Nm EVP_camellia_256_cfb ,
61.Nm EVP_camellia_128_cfb1 ,
62.Nm EVP_camellia_192_cfb1 ,
63.Nm EVP_camellia_256_cfb1 ,
64.Nm EVP_camellia_128_cfb8 ,
65.Nm EVP_camellia_192_cfb8 ,
66.Nm EVP_camellia_256_cfb8 ,
67.Nm EVP_camellia_128_cfb128 ,
68.Nm EVP_camellia_192_cfb128 ,
69.Nm EVP_camellia_256_cfb128 ,
70.Nm EVP_camellia_128_ecb ,
71.Nm EVP_camellia_192_ecb ,
72.Nm EVP_camellia_256_ecb ,
73.Nm EVP_camellia_128_ofb ,
74.Nm EVP_camellia_192_ofb ,
75.Nm EVP_camellia_256_ofb
76.Nd EVP Camellia cipher
77.Sh SYNOPSIS
78.In openssl/evp.h
79.Ft const EVP_CIPHER *
80.Fn EVP_camellia_128_cbc void
81.Ft const EVP_CIPHER *
82.Fn EVP_camellia_192_cbc void
83.Ft const EVP_CIPHER *
84.Fn EVP_camellia_256_cbc void
85.Ft const EVP_CIPHER *
86.Fn EVP_camellia_128_cfb void
87.Ft const EVP_CIPHER *
88.Fn EVP_camellia_192_cfb void
89.Ft const EVP_CIPHER *
90.Fn EVP_camellia_256_cfb void
91.Ft const EVP_CIPHER *
92.Fn EVP_camellia_128_cfb1 void
93.Ft const EVP_CIPHER *
94.Fn EVP_camellia_192_cfb1 void
95.Ft const EVP_CIPHER *
96.Fn EVP_camellia_256_cfb1 void
97.Ft const EVP_CIPHER *
98.Fn EVP_camellia_128_cfb8 void
99.Ft const EVP_CIPHER *
100.Fn EVP_camellia_192_cfb8 void
101.Ft const EVP_CIPHER *
102.Fn EVP_camellia_256_cfb8 void
103.Ft const EVP_CIPHER *
104.Fn EVP_camellia_128_cfb128 void
105.Ft const EVP_CIPHER *
106.Fn EVP_camellia_192_cfb128 void
107.Ft const EVP_CIPHER *
108.Fn EVP_camellia_256_cfb128 void
109.Ft const EVP_CIPHER *
110.Fn EVP_camellia_128_ecb void
111.Ft const EVP_CIPHER *
112.Fn EVP_camellia_192_ecb void
113.Ft const EVP_CIPHER *
114.Fn EVP_camellia_256_ecb void
115.Ft const EVP_CIPHER *
116.Fn EVP_camellia_128_ofb void
117.Ft const EVP_CIPHER *
118.Fn EVP_camellia_192_ofb void
119.Ft const EVP_CIPHER *
120.Fn EVP_camellia_256_ofb void
121.Sh DESCRIPTION
122These functions provide the Camellia encryption algorithm in the
123.Xr evp 3
124framework.
125They use 128, 192, and 256 bit keys in the following modes, respectively:
126CBC, CFB with 1-bit shift, CFB with 8-bit shift, CFB with 128-bit shift,
127ECB, and OFB.
128.Pp
129.Fn EVP_camellia_128_cfb ,
130.Fn EVP_camellia_192_cfb ,
131and
132.Fn EVP_camellia_256_cfb
133are aliases for
134.Fn EVP_camellia_128_cfb128 ,
135.Fn EVP_camellia_192_cfb128 ,
136and
137.Fn EVP_camellia_256_cfb128 ,
138implemented as macros.
139.Sh RETURN VALUES
140These functions return an
141.Vt EVP_CIPHER
142structure that provides the implementation of the symmetric cipher.
143.Sh SEE ALSO
144.Xr evp 3 ,
145.Xr EVP_EncryptInit 3
146.Sh HISTORY
147These functions first appeared in OpenSSL 0.9.8c
148and have been available since
149.Ox 4.5 .
diff --git a/src/lib/libcrypto/man/Makefile b/src/lib/libcrypto/man/Makefile
index 08888f9fef..a9adb07f27 100644
--- a/src/lib/libcrypto/man/Makefile
+++ b/src/lib/libcrypto/man/Makefile
@@ -1,4 +1,4 @@
1# $OpenBSD: Makefile,v 1.147 2019/03/21 13:37:25 schwarze Exp $ 1# $OpenBSD: Makefile,v 1.148 2019/03/21 14:15:13 schwarze Exp $
2 2
3.include <bsd.own.mk> 3.include <bsd.own.mk>
4 4
@@ -152,6 +152,7 @@ MAN= \
152 EVP_SignInit.3 \ 152 EVP_SignInit.3 \
153 EVP_VerifyInit.3 \ 153 EVP_VerifyInit.3 \
154 EVP_aes_128_cbc.3 \ 154 EVP_aes_128_cbc.3 \
155 EVP_camellia_128_cbc.3 \
155 EVP_des_cbc.3 \ 156 EVP_des_cbc.3 \
156 EVP_rc4.3 \ 157 EVP_rc4.3 \
157 EVP_sm4_cbc.3 \ 158 EVP_sm4_cbc.3 \
diff --git a/src/lib/libcrypto/man/evp.3 b/src/lib/libcrypto/man/evp.3
index 27ecaced4e..8ea9c78de0 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.9 2019/03/21 13:37:25 schwarze Exp $ 1.\" $OpenBSD: evp.3,v 1.10 2019/03/21 14:15:13 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>,
@@ -184,6 +184,7 @@ operations are more efficient using the high level interfaces.
184.Xr EVP_AEAD_CTX_init 3 , 184.Xr EVP_AEAD_CTX_init 3 ,
185.Xr EVP_aes_128_cbc 3 , 185.Xr EVP_aes_128_cbc 3 ,
186.Xr EVP_BytesToKey 3 , 186.Xr EVP_BytesToKey 3 ,
187.Xr EVP_camellia_128_cbc 3 ,
187.Xr EVP_des_cbc 3 , 188.Xr EVP_des_cbc 3 ,
188.Xr EVP_DigestInit 3 , 189.Xr EVP_DigestInit 3 ,
189.Xr EVP_DigestSignInit 3 , 190.Xr EVP_DigestSignInit 3 ,