1e1051a39Sopenharmony_ci/* 2e1051a39Sopenharmony_ci * Copyright 2006-2016 The OpenSSL Project Authors. All Rights Reserved. 3e1051a39Sopenharmony_ci * 4e1051a39Sopenharmony_ci * Licensed under the Apache License 2.0 (the "License"). You may not use 5e1051a39Sopenharmony_ci * this file except in compliance with the License. You can obtain a copy 6e1051a39Sopenharmony_ci * in the file LICENSE in the source distribution or at 7e1051a39Sopenharmony_ci * https://www.openssl.org/source/license.html 8e1051a39Sopenharmony_ci */ 9e1051a39Sopenharmony_ci 10e1051a39Sopenharmony_ci/* ==================================================================== 11e1051a39Sopenharmony_ci * Copyright 2006 NTT (Nippon Telegraph and Telephone Corporation) . 12e1051a39Sopenharmony_ci * ALL RIGHTS RESERVED. 13e1051a39Sopenharmony_ci * 14e1051a39Sopenharmony_ci * Intellectual Property information for Camellia: 15e1051a39Sopenharmony_ci * http://info.isl.ntt.co.jp/crypt/eng/info/chiteki.html 16e1051a39Sopenharmony_ci * 17e1051a39Sopenharmony_ci * News Release for Announcement of Camellia open source: 18e1051a39Sopenharmony_ci * http://www.ntt.co.jp/news/news06e/0604/060413a.html 19e1051a39Sopenharmony_ci * 20e1051a39Sopenharmony_ci * The Camellia Code included herein is developed by 21e1051a39Sopenharmony_ci * NTT (Nippon Telegraph and Telephone Corporation), and is contributed 22e1051a39Sopenharmony_ci * to the OpenSSL project. 23e1051a39Sopenharmony_ci */ 24e1051a39Sopenharmony_ci 25e1051a39Sopenharmony_ci#ifndef OSSL_CRYPTO_CAMELLIA_CMLL_LOCAL_H 26e1051a39Sopenharmony_ci# define OSSL_CRYPTO_CAMELLIA_CMLL_LOCAL_H 27e1051a39Sopenharmony_ci 28e1051a39Sopenharmony_citypedef unsigned int u32; 29e1051a39Sopenharmony_citypedef unsigned char u8; 30e1051a39Sopenharmony_ci 31e1051a39Sopenharmony_ciint Camellia_Ekeygen(int keyBitLength, const u8 *rawKey, 32e1051a39Sopenharmony_ci KEY_TABLE_TYPE keyTable); 33e1051a39Sopenharmony_civoid Camellia_EncryptBlock_Rounds(int grandRounds, const u8 plaintext[], 34e1051a39Sopenharmony_ci const KEY_TABLE_TYPE keyTable, 35e1051a39Sopenharmony_ci u8 ciphertext[]); 36e1051a39Sopenharmony_civoid Camellia_DecryptBlock_Rounds(int grandRounds, const u8 ciphertext[], 37e1051a39Sopenharmony_ci const KEY_TABLE_TYPE keyTable, 38e1051a39Sopenharmony_ci u8 plaintext[]); 39e1051a39Sopenharmony_civoid Camellia_EncryptBlock(int keyBitLength, const u8 plaintext[], 40e1051a39Sopenharmony_ci const KEY_TABLE_TYPE keyTable, u8 ciphertext[]); 41e1051a39Sopenharmony_civoid Camellia_DecryptBlock(int keyBitLength, const u8 ciphertext[], 42e1051a39Sopenharmony_ci const KEY_TABLE_TYPE keyTable, u8 plaintext[]); 43e1051a39Sopenharmony_ci#endif /* #ifndef OSSL_CRYPTO_CAMELLIA_CMLL_LOCAL_H */ 44