Fix some s_server issues on Windows
[openssl.git] / crypto / camellia / cmll_locl.h
1 /*
2  * Copyright 2006-2016 The OpenSSL Project Authors. All Rights Reserved.
3  *
4  * Licensed under the OpenSSL license (the "License").  You may not use
5  * this file except in compliance with the License.  You can obtain a copy
6  * in the file LICENSE in the source distribution or at
7  * https://www.openssl.org/source/license.html
8  */
9
10 /* ====================================================================
11  * Copyright 2006 NTT (Nippon Telegraph and Telephone Corporation) .
12  * ALL RIGHTS RESERVED.
13  *
14  * Intellectual Property information for Camellia:
15  *     http://info.isl.ntt.co.jp/crypt/eng/info/chiteki.html
16  *
17  * News Release for Announcement of Camellia open source:
18  *     http://www.ntt.co.jp/news/news06e/0604/060413a.html
19  *
20  * The Camellia Code included herein is developed by
21  * NTT (Nippon Telegraph and Telephone Corporation), and is contributed
22  * to the OpenSSL project.
23  *
24  * The Camellia Code is licensed pursuant to the OpenSSL open source
25  * license provided below.
26  */
27 /* ====================================================================
28  * Copyright (c) 2006 The OpenSSL Project.  All rights reserved.
29  *
30  * Redistribution and use in source and binary forms, with or without
31  * modification, are permitted provided that the following conditions
32  * are met:
33  *
34  * 1. Redistributions of source code must retain the above copyright
35  *    notice, this list of conditions and the following disclaimer.
36  *
37  * 2. Redistributions in binary form must reproduce the above copyright
38  *    notice, this list of conditions and the following disclaimer in
39  *    the documentation and/or other materials provided with the
40  *    distribution.
41  *
42  * 3. All advertising materials mentioning features or use of this
43  *    software must display the following acknowledgment:
44  *    "This product includes software developed by the OpenSSL Project
45  *    for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
46  *
47  * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
48  *    endorse or promote products derived from this software without
49  *    prior written permission. For written permission, please contact
50  *    openssl-core@openssl.org.
51  *
52  * 5. Products derived from this software may not be called "OpenSSL"
53  *    nor may "OpenSSL" appear in their names without prior written
54  *    permission of the OpenSSL Project.
55  *
56  * 6. Redistributions of any form whatsoever must retain the following
57  *    acknowledgment:
58  *    "This product includes software developed by the OpenSSL Project
59  *    for use in the OpenSSL Toolkit (http://www.openssl.org/)"
60  *
61  * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
62  * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
63  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
64  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE OpenSSL PROJECT OR
65  * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
66  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
67  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
68  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
69  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
70  * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
71  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
72  * OF THE POSSIBILITY OF SUCH DAMAGE.
73  * ====================================================================
74  */
75
76 #ifndef HEADER_CAMELLIA_LOCL_H
77 # define HEADER_CAMELLIA_LOCL_H
78
79 typedef unsigned int u32;
80 typedef unsigned char u8;
81
82 int Camellia_Ekeygen(int keyBitLength, const u8 *rawKey,
83                      KEY_TABLE_TYPE keyTable);
84 void Camellia_EncryptBlock_Rounds(int grandRounds, const u8 plaintext[],
85                                   const KEY_TABLE_TYPE keyTable,
86                                   u8 ciphertext[]);
87 void Camellia_DecryptBlock_Rounds(int grandRounds, const u8 ciphertext[],
88                                   const KEY_TABLE_TYPE keyTable,
89                                   u8 plaintext[]);
90 void Camellia_EncryptBlock(int keyBitLength, const u8 plaintext[],
91                            const KEY_TABLE_TYPE keyTable, u8 ciphertext[]);
92 void Camellia_DecryptBlock(int keyBitLength, const u8 ciphertext[],
93                            const KEY_TABLE_TYPE keyTable, u8 plaintext[]);
94 #endif                          /* #ifndef HEADER_CAMELLIA_LOCL_H */