30 #ifndef MBEDTLS_ARIA_H 31 #define MBEDTLS_ARIA_H 33 #if !defined(MBEDTLS_CONFIG_FILE) 36 #include MBEDTLS_CONFIG_FILE 44 #define MBEDTLS_ARIA_ENCRYPT 1 45 #define MBEDTLS_ARIA_DECRYPT 0 47 #define MBEDTLS_ARIA_BLOCKSIZE 16 48 #define MBEDTLS_ARIA_MAX_ROUNDS 16 49 #define MBEDTLS_ARIA_MAX_KEYSIZE 32 51 #if !defined(MBEDTLS_DEPRECATED_REMOVED) 52 #define MBEDTLS_ERR_ARIA_INVALID_KEY_LENGTH MBEDTLS_DEPRECATED_NUMERIC_CONSTANT( -0x005C ) 54 #define MBEDTLS_ERR_ARIA_BAD_INPUT_DATA -0x005C 56 #define MBEDTLS_ERR_ARIA_INVALID_INPUT_LENGTH -0x005E 60 #define MBEDTLS_ERR_ARIA_FEATURE_UNAVAILABLE -0x005A 63 #define MBEDTLS_ERR_ARIA_HW_ACCEL_FAILED -0x0058 65 #if !defined(MBEDTLS_ARIA_ALT) 123 const unsigned char *key,
124 unsigned int keybits );
142 const unsigned char *key,
143 unsigned int keybits );
169 #if defined(MBEDTLS_CIPHER_MODE_CBC) 215 const unsigned char *input,
216 unsigned char *output );
219 #if defined(MBEDTLS_CIPHER_MODE_CFB) 266 const unsigned char *input,
267 unsigned char *output );
270 #if defined(MBEDTLS_CIPHER_MODE_CTR) 353 const unsigned char *input,
354 unsigned char *output );
357 #if defined(MBEDTLS_SELF_TEST) 363 int mbedtls_aria_self_test(
int verbose );
unsigned char nr
Definition: aria.h:78
int mbedtls_aria_setkey_dec(mbedtls_aria_context *ctx, const unsigned char *key, unsigned int keybits)
This function sets the decryption key.
Configuration options (set of defines)
#define MBEDTLS_ARIA_MAX_ROUNDS
Definition: aria.h:48
The ARIA context-type definition.
Definition: aria.h:76
uint32_t rk[MBEDTLS_ARIA_MAX_ROUNDS+1][MBEDTLS_ARIA_BLOCKSIZE/4]
Definition: aria.h:80
#define MBEDTLS_ARIA_BLOCKSIZE
Definition: aria.h:47
void mbedtls_aria_free(mbedtls_aria_context *ctx)
This function releases and clears the specified ARIA context.
struct mbedtls_aria_context mbedtls_aria_context
The ARIA context-type definition.
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.
int mbedtls_aria_setkey_enc(mbedtls_aria_context *ctx, const unsigned char *key, unsigned int keybits)
This function sets the encryption key.
void mbedtls_aria_init(mbedtls_aria_context *ctx)
This function initializes the specified ARIA context.