1.\" $OpenBSD: EVP_camellia_128_cbc.3,v 1.2 2020/06/24 18:15:00 jmc 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: June 24 2020 $
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 .
150