cmll_locl.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. * Copyright 2006 NTT (Nippon Telegraph and Telephone Corporation) .
  11. * ALL RIGHTS RESERVED.
  12. *
  13. * Intellectual Property information for Camellia:
  14. * http://info.isl.ntt.co.jp/crypt/eng/info/chiteki.html
  15. *
  16. * News Release for Announcement of Camellia open source:
  17. * http://www.ntt.co.jp/news/news06e/0604/060413a.html
  18. *
  19. * The Camellia Code included herein is developed by
  20. * NTT (Nippon Telegraph and Telephone Corporation), and is contributed
  21. * to the OpenSSL project.
  22. */
  23. #ifndef HEADER_CAMELLIA_LOCL_H
  24. # define HEADER_CAMELLIA_LOCL_H
  25. typedef unsigned int u32;
  26. typedef unsigned char u8;
  27. int Camellia_Ekeygen(int keyBitLength, const u8 *rawKey,
  28. KEY_TABLE_TYPE keyTable);
  29. void Camellia_EncryptBlock_Rounds(int grandRounds, const u8 plaintext[],
  30. const KEY_TABLE_TYPE keyTable,
  31. u8 ciphertext[]);
  32. void Camellia_DecryptBlock_Rounds(int grandRounds, const u8 ciphertext[],
  33. const KEY_TABLE_TYPE keyTable,
  34. u8 plaintext[]);
  35. void Camellia_EncryptBlock(int keyBitLength, const u8 plaintext[],
  36. const KEY_TABLE_TYPE keyTable, u8 ciphertext[]);
  37. void Camellia_DecryptBlock(int keyBitLength, const u8 ciphertext[],
  38. const KEY_TABLE_TYPE keyTable, u8 plaintext[]);
  39. #endif /* #ifndef HEADER_CAMELLIA_LOCL_H */