59#if !defined(MBEDTLS_CONFIG_FILE)
62#include MBEDTLS_CONFIG_FILE
70#define MBEDTLS_ARIA_ENCRYPT 1
71#define MBEDTLS_ARIA_DECRYPT 0
73#define MBEDTLS_ARIA_BLOCKSIZE 16
74#define MBEDTLS_ARIA_MAX_ROUNDS 16
75#define MBEDTLS_ARIA_MAX_KEYSIZE 32
77#if !defined(MBEDTLS_DEPRECATED_REMOVED)
78#define MBEDTLS_ERR_ARIA_INVALID_KEY_LENGTH MBEDTLS_DEPRECATED_NUMERIC_CONSTANT( -0x005C )
80#define MBEDTLS_ERR_ARIA_BAD_INPUT_DATA -0x005C
82#define MBEDTLS_ERR_ARIA_INVALID_INPUT_LENGTH -0x005E
86#define MBEDTLS_ERR_ARIA_FEATURE_UNAVAILABLE -0x005A
89#define MBEDTLS_ERR_ARIA_HW_ACCEL_FAILED -0x0058
95#if !defined(MBEDTLS_ARIA_ALT)
149 const unsigned char *
key,
150 unsigned int keybits );
168 const unsigned char *
key,
169 unsigned int keybits );
195#if defined(MBEDTLS_CIPHER_MODE_CBC)
241 const unsigned char *
input,
242 unsigned char *output );
245#if defined(MBEDTLS_CIPHER_MODE_CFB)
292 const unsigned char *
input,
293 unsigned char *output );
296#if defined(MBEDTLS_CIPHER_MODE_CTR)
379 const unsigned char *
input,
380 unsigned char *output );
383#if defined(MBEDTLS_SELF_TEST)
389int mbedtls_aria_self_test(
int verbose );
int mbedtls_aria_crypt_cbc(mbedtls_aria_context *ctx, int mode, size_t length, unsigned char iv[MBEDTLS_ARIA_BLOCKSIZE], const unsigned char *input, unsigned char *output)
This function performs an ARIA-CBC encryption or decryption operation on full blocks.
int mbedtls_aria_crypt_cfb128(mbedtls_aria_context *ctx, int mode, size_t length, size_t *iv_off, unsigned char iv[MBEDTLS_ARIA_BLOCKSIZE], const unsigned char *input, unsigned char *output)
This function performs an ARIA-CFB128 encryption or decryption operation.
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
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
int mbedtls_aria_crypt_ctr(mbedtls_aria_context *ctx, size_t length, size_t *nc_off, unsigned char nonce_counter[MBEDTLS_ARIA_BLOCKSIZE], unsigned char stream_block[MBEDTLS_ARIA_BLOCKSIZE], const unsigned char *input, unsigned char *output)
This function performs an ARIA-CTR encryption or decryption operation.
GLuint GLsizei GLsizei * length
GLenum GLenum GLenum input
The ARIA context-type definition.
uint32_t rk[MBEDTLS_ARIA_MAX_ROUNDS+1][MBEDTLS_ARIA_BLOCKSIZE/4]