24 #ifndef MBEDTLS_CAMELLIA_H 25 #define MBEDTLS_CAMELLIA_H 27 #if !defined(MBEDTLS_CONFIG_FILE) 30 #include MBEDTLS_CONFIG_FILE 38 #define MBEDTLS_CAMELLIA_ENCRYPT 1 39 #define MBEDTLS_CAMELLIA_DECRYPT 0 41 #if !defined(MBEDTLS_DEPRECATED_REMOVED) 42 #define MBEDTLS_ERR_CAMELLIA_INVALID_KEY_LENGTH MBEDTLS_DEPRECATED_NUMERIC_CONSTANT( -0x0024 ) 44 #define MBEDTLS_ERR_CAMELLIA_BAD_INPUT_DATA -0x0024 46 #define MBEDTLS_ERR_CAMELLIA_INVALID_INPUT_LENGTH -0x0026 50 #define MBEDTLS_ERR_CAMELLIA_HW_ACCEL_FAILED -0x0027 56 #if !defined(MBEDTLS_CAMELLIA_ALT) 71 #include "camellia_alt.h" 104 const unsigned char *key,
105 unsigned int keybits );
120 const unsigned char *key,
121 unsigned int keybits );
140 const unsigned char input[16],
141 unsigned char output[16] );
143 #if defined(MBEDTLS_CIPHER_MODE_CBC) 175 unsigned char iv[16],
176 const unsigned char *input,
177 unsigned char *output );
180 #if defined(MBEDTLS_CIPHER_MODE_CFB) 222 unsigned char iv[16],
223 const unsigned char *input,
224 unsigned char *output );
227 #if defined(MBEDTLS_CIPHER_MODE_CTR) 305 unsigned char nonce_counter[16],
306 unsigned char stream_block[16],
307 const unsigned char *input,
308 unsigned char *output );
int mbedtls_camellia_crypt_ecb(mbedtls_camellia_context *ctx, int mode, const unsigned char input[16], unsigned char output[16])
Perform a CAMELLIA-ECB block encryption/decryption operation.
int mbedtls_camellia_self_test(int verbose)
Checkup routine.
void mbedtls_camellia_free(mbedtls_camellia_context *ctx)
Clear a CAMELLIA context.
Configuration options (set of defines)
int mbedtls_camellia_setkey_enc(mbedtls_camellia_context *ctx, const unsigned char *key, unsigned int keybits)
Perform a CAMELLIA key schedule operation for encryption.
int nr
Definition: camellia.h:65
int mbedtls_camellia_setkey_dec(mbedtls_camellia_context *ctx, const unsigned char *key, unsigned int keybits)
Perform a CAMELLIA key schedule operation for decryption.
void mbedtls_camellia_init(mbedtls_camellia_context *ctx)
Initialize a CAMELLIA context.
uint32_t rk[68]
Definition: camellia.h:66
CAMELLIA context structure.
Definition: camellia.h:63
struct mbedtls_camellia_context mbedtls_camellia_context
CAMELLIA context structure.