![]() ![]() | ![]() |
File: [local] / OpenXM / src / ox_ntl / crypt / camellia / camellia.h (download)
Revision 1.1, Sun May 29 11:50:40 2005 UTC (19 years, 3 months ago) by iwane
Camellia: a 128-bit block cipher |
/* $OpenXM: OpenXM/src/ox_ntl/crypt/camellia/camellia.h,v 1.1 2005/05/29 11:50:40 iwane Exp $ */ /* * Camellia * http://info.isl.ntt.co.jp/crypt/camellia/index.html */ #ifndef __CAMELLIA_H__ #define __CAMELLIA_H__ #include <inttypes.h> typedef struct __camellia_key_t { int len; uint32_t key[8]; uint32_t k[24 * 2]; uint32_t kw[4 * 2]; uint32_t kl[6 * 2]; } camellia_key; #ifdef __cplusplus extern "C" { #endif int camellia_keyset(const unsigned char *, int, camellia_key *); void camellia_enc(camellia_key *ckey, const uint8_t *msg, uint8_t *e); void camellia_dec(camellia_key *ckey, const uint8_t *msg, uint8_t *e); #ifdef __cplusplus } #endif #endif /* __CAMELLIA_H__ */