Go to the documentation of this file.
27 #ifndef POLARSSL_CAMELLIA_H
28 #define POLARSSL_CAMELLIA_H
30 #if !defined(POLARSSL_CONFIG_FILE)
33 #include POLARSSL_CONFIG_FILE
38 #if defined(_MSC_VER) && !defined(EFIX64) && !defined(EFI32)
40 typedef UINT32 uint32_t;
45 #define CAMELLIA_ENCRYPT 1
46 #define CAMELLIA_DECRYPT 0
48 #define POLARSSL_ERR_CAMELLIA_INVALID_KEY_LENGTH -0x0024
49 #define POLARSSL_ERR_CAMELLIA_INVALID_INPUT_LENGTH -0x0026
51 #if !defined(POLARSSL_CAMELLIA_ALT)
93 unsigned int keysize );
105 unsigned int keysize );
119 const unsigned char input[16],
120 unsigned char output[16] );
122 #if defined(POLARSSL_CIPHER_MODE_CBC)
141 unsigned char iv[16],
142 const unsigned char *input,
143 unsigned char *output );
146 #if defined(POLARSSL_CIPHER_MODE_CFB)
169 unsigned char iv[16],
170 const unsigned char *input,
171 unsigned char *output );
174 #if defined(POLARSSL_CIPHER_MODE_CTR)
200 unsigned char nonce_counter[16],
201 unsigned char stream_block[16],
202 const unsigned char *input,
203 unsigned char *output );
211 #include "camellia_alt.h"