28#define MBEDTLS_ARIA_ENCRYPT 1
29#define MBEDTLS_ARIA_DECRYPT 0
31#define MBEDTLS_ARIA_BLOCKSIZE 16
32#define MBEDTLS_ARIA_MAX_ROUNDS 16
33#define MBEDTLS_ARIA_MAX_KEYSIZE 32
36#define MBEDTLS_ERR_ARIA_BAD_INPUT_DATA -0x005C
39#define MBEDTLS_ERR_ARIA_INVALID_INPUT_LENGTH -0x005E
45#if !defined(MBEDTLS_ARIA_ALT)
98 const unsigned char *key,
99 unsigned int keybits);
101#if !defined(MBEDTLS_BLOCK_CIPHER_NO_DECRYPT)
118 const unsigned char *key,
119 unsigned int keybits);
146#if defined(MBEDTLS_CIPHER_MODE_CBC)
192 const unsigned char *
input,
193 unsigned char *output);
196#if defined(MBEDTLS_CIPHER_MODE_CFB)
243 const unsigned char *
input,
244 unsigned char *output);
247#if defined(MBEDTLS_CIPHER_MODE_CTR)
326 const unsigned char *
input,
327 unsigned char *output);
330#if defined(MBEDTLS_SELF_TEST)
336int mbedtls_aria_self_test(
int verbose);
unsigned int uint32_t
Definition acefiex.h:163
void mbedtls_aria_init(mbedtls_aria_context *ctx)
This function initializes the specified ARIA context.
int mbedtls_aria_setkey_dec(mbedtls_aria_context *ctx, const unsigned char *key, unsigned int keybits)
This function sets the decryption key.
#define MBEDTLS_ARIA_BLOCKSIZE
Definition aria.h:31
int mbedtls_aria_crypt_ecb(mbedtls_aria_context *ctx, const unsigned char input[MBEDTLS_ARIA_BLOCKSIZE], unsigned char output[MBEDTLS_ARIA_BLOCKSIZE])
This function performs an ARIA single-block encryption or decryption operation.
void mbedtls_aria_free(mbedtls_aria_context *ctx)
This function releases and clears the specified ARIA context.
int mbedtls_aria_setkey_enc(mbedtls_aria_context *ctx, const unsigned char *key, unsigned int keybits)
This function sets the encryption key.
#define MBEDTLS_ARIA_MAX_ROUNDS
Definition aria.h:32
Build-time configuration info.
Macro wrapper for struct's members.
The ARIA context-type definition.
Definition aria.h:52
uint32_t MBEDTLS_PRIVATE(rk)[MBEDTLS_ARIA_MAX_ROUNDS+1][MBEDTLS_ARIA_BLOCKSIZE/4]
unsigned char MBEDTLS_PRIVATE(nr)
struct VirtioInputEvent * input
Definition virtiokbd.c:46