10#ifndef MBEDTLS_CAMELLIA_H
11#define MBEDTLS_CAMELLIA_H
21#define MBEDTLS_CAMELLIA_ENCRYPT 1
22#define MBEDTLS_CAMELLIA_DECRYPT 0
25#define MBEDTLS_ERR_CAMELLIA_BAD_INPUT_DATA -0x0024
28#define MBEDTLS_ERR_CAMELLIA_INVALID_INPUT_LENGTH -0x0026
34#if !defined(MBEDTLS_CAMELLIA_ALT)
48#include "camellia_alt.h"
81 const unsigned char *key,
82 unsigned int keybits);
84#if !defined(MBEDTLS_BLOCK_CIPHER_NO_DECRYPT)
98 const unsigned char *key,
99 unsigned int keybits);
119 const unsigned char input[16],
120 unsigned char output[16]);
122#if defined(MBEDTLS_CIPHER_MODE_CBC)
154 unsigned char iv[16],
155 const unsigned char *
input,
156 unsigned char *output);
159#if defined(MBEDTLS_CIPHER_MODE_CFB)
201 unsigned char iv[16],
202 const unsigned char *
input,
203 unsigned char *output);
206#if defined(MBEDTLS_CIPHER_MODE_CTR)
284 unsigned char nonce_counter[16],
285 unsigned char stream_block[16],
286 const unsigned char *
input,
287 unsigned char *output);
290#if defined(MBEDTLS_SELF_TEST)
297int mbedtls_camellia_self_test(
int verbose);
unsigned int uint32_t
Definition acefiex.h:163
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 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_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.
void mbedtls_camellia_free(mbedtls_camellia_context *ctx)
Clear a CAMELLIA context.
Build-time configuration info.
Macro wrapper for struct's members.
CAMELLIA context structure.
Definition camellia.h:41
uint32_t MBEDTLS_PRIVATE(rk)[68]
struct VirtioInputEvent * input
Definition virtiokbd.c:46