cmll_local.h 1.8 KB
Newer Older
R
Rich Salz 已提交
1 2 3 4 5 6 7 8 9
/*
 * Copyright 2006-2016 The OpenSSL Project Authors. All Rights Reserved.
 *
 * Licensed under the OpenSSL license (the "License").  You may not use
 * this file except in compliance with the License.  You can obtain a copy
 * in the file LICENSE in the source distribution or at
 * https://www.openssl.org/source/license.html
 */

10
/* ====================================================================
11
 * Copyright 2006 NTT (Nippon Telegraph and Telephone Corporation) .
12 13 14 15 16 17 18 19 20 21 22 23 24 25
 * ALL RIGHTS RESERVED.
 *
 * Intellectual Property information for Camellia:
 *     http://info.isl.ntt.co.jp/crypt/eng/info/chiteki.html
 *
 * News Release for Announcement of Camellia open source:
 *     http://www.ntt.co.jp/news/news06e/0604/060413a.html
 *
 * The Camellia Code included herein is developed by
 * NTT (Nippon Telegraph and Telephone Corporation), and is contributed
 * to the OpenSSL project.
 */

#ifndef HEADER_CAMELLIA_LOCL_H
26
# define HEADER_CAMELLIA_LOCL_H
27

28
typedef unsigned int u32;
A
Andy Polyakov 已提交
29
typedef unsigned char u8;
30

31
int Camellia_Ekeygen(int keyBitLength, const u8 *rawKey,
32 33 34 35 36 37 38 39 40 41 42 43
                     KEY_TABLE_TYPE keyTable);
void Camellia_EncryptBlock_Rounds(int grandRounds, const u8 plaintext[],
                                  const KEY_TABLE_TYPE keyTable,
                                  u8 ciphertext[]);
void Camellia_DecryptBlock_Rounds(int grandRounds, const u8 ciphertext[],
                                  const KEY_TABLE_TYPE keyTable,
                                  u8 plaintext[]);
void Camellia_EncryptBlock(int keyBitLength, const u8 plaintext[],
                           const KEY_TABLE_TYPE keyTable, u8 ciphertext[]);
void Camellia_DecryptBlock(int keyBitLength, const u8 ciphertext[],
                           const KEY_TABLE_TYPE keyTable, u8 plaintext[]);
#endif                          /* #ifndef HEADER_CAMELLIA_LOCL_H */