32#if !defined(MBEDTLS_CONFIG_FILE)
35#include MBEDTLS_CONFIG_FILE
50#define MBEDTLS_ARIA_ENCRYPT 1
51#define MBEDTLS_ARIA_DECRYPT 0
53#define MBEDTLS_ARIA_BLOCKSIZE 16
54#define MBEDTLS_ARIA_MAX_ROUNDS 16
55#define MBEDTLS_ARIA_MAX_KEYSIZE 32
57#if !defined(MBEDTLS_DEPRECATED_REMOVED)
58#define MBEDTLS_ERR_ARIA_INVALID_KEY_LENGTH MBEDTLS_DEPRECATED_NUMERIC_CONSTANT( -0x005C )
60#define MBEDTLS_ERR_ARIA_BAD_INPUT_DATA -0x005C
62#define MBEDTLS_ERR_ARIA_INVALID_INPUT_LENGTH -0x005E
66#define MBEDTLS_ERR_ARIA_FEATURE_UNAVAILABLE -0x005A
69#define MBEDTLS_ERR_ARIA_HW_ACCEL_FAILED -0x0058
71#if !defined(MBEDTLS_ARIA_ALT)
129 const unsigned char *key,
130 unsigned int keybits );
148 const unsigned char *key,
149 unsigned int keybits );
175#if defined(MBEDTLS_CIPHER_MODE_CBC)
221 const unsigned char *input,
222 unsigned char *output );
225#if defined(MBEDTLS_CIPHER_MODE_CFB)
272 const unsigned char *input,
273 unsigned char *output );
276#if defined(MBEDTLS_CIPHER_MODE_CTR)
359 const unsigned char *input,
360 unsigned char *output );
366#if defined(MBEDTLS_SELF_TEST)
372int mbedtls_aria_self_test(
int verbose );
Configuration options (set of defines)
int mbedtls_aria_crypt_ecb(mbedtls_aria_context *ctx, const unsigned char input[16], unsigned char output[16])
This function performs an ARIA single-block encryption or decryption operation.
void mbedtls_aria_init(mbedtls_aria_context *ctx)
This function initializes the specified ARIA context.
int mbedtls_aria_crypt_ctr(mbedtls_aria_context *ctx, size_t length, size_t *nc_off, unsigned char nonce_counter[16], unsigned char stream_block[16], const unsigned char *input, unsigned char *output)
This function performs an ARIA-CTR encryption or decryption operation.
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
ARIA block size in bytes.
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
Maxiumum number of rounds in ARIA.
The ARIA context-type definition.