2016-05-18 02:52:22 +08:00
|
|
|
/*
|
|
|
|
* Copyright 2006-2016 The OpenSSL Project Authors. All Rights Reserved.
|
|
|
|
*
|
2018-12-06 20:29:51 +08:00
|
|
|
* Licensed under the Apache License 2.0 (the "License"). You may not use
|
2016-05-18 02:52:22 +08:00
|
|
|
* 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
|
|
|
|
*/
|
|
|
|
|
2006-06-10 06:29:40 +08:00
|
|
|
/* ====================================================================
|
|
|
|
* Copyright 2006 NTT (Nippon Telegraph and Telephone Corporation) .
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
2019-09-28 06:45:57 +08:00
|
|
|
#ifndef OSSL_CRYPTO_CAMELLIA_CMLL_LOCAL_H
|
|
|
|
# define OSSL_CRYPTO_CAMELLIA_CMLL_LOCAL_H
|
2006-06-10 06:29:40 +08:00
|
|
|
|
2008-10-28 16:47:24 +08:00
|
|
|
typedef unsigned int u32;
|
2006-12-02 18:38:40 +08:00
|
|
|
typedef unsigned char u8;
|
2006-06-10 06:29:40 +08:00
|
|
|
|
2012-06-04 06:00:21 +08:00
|
|
|
int Camellia_Ekeygen(int keyBitLength, const u8 *rawKey,
|
|
|
|
KEY_TABLE_TYPE keyTable);
|
2008-10-28 20:13:52 +08:00
|
|
|
void Camellia_EncryptBlock_Rounds(int grandRounds, const u8 plaintext[],
|
2008-10-28 16:47:24 +08:00
|
|
|
const KEY_TABLE_TYPE keyTable,
|
|
|
|
u8 ciphertext[]);
|
2008-10-28 20:13:52 +08:00
|
|
|
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[],
|
2008-10-28 16:47:24 +08:00
|
|
|
const KEY_TABLE_TYPE keyTable, u8 plaintext[]);
|
2019-09-28 06:45:57 +08:00
|
|
|
#endif /* #ifndef OSSL_CRYPTO_CAMELLIA_CMLL_LOCAL_H */
|