![]() |
Mbed OS Reference
|
ARIA block cipher. More...
#include "mbedtls/config.h"#include <stddef.h>#include <stdint.h>#include "mbedtls/platform_util.h"Go to the source code of this file.
Data Structures | |
| struct | mbedtls_aria_context |
| The ARIA context-type definition. More... | |
Macros | |
| #define | MBEDTLS_ARIA_ENCRYPT 1 |
| ARIA encryption. | |
| #define | MBEDTLS_ARIA_DECRYPT 0 |
| ARIA decryption. | |
| #define | MBEDTLS_ARIA_BLOCKSIZE 16 |
| ARIA block size in bytes. | |
| #define | MBEDTLS_ARIA_MAX_ROUNDS 16 |
| Maxiumum number of rounds in ARIA. | |
| #define | MBEDTLS_ARIA_MAX_KEYSIZE 32 |
| Maximum size of an ARIA key in bytes. | |
| #define | MBEDTLS_ERR_ARIA_BAD_INPUT_DATA -0x005C |
| Bad input data. | |
| #define | MBEDTLS_ERR_ARIA_INVALID_INPUT_LENGTH -0x005E |
| Invalid data input length. | |
| #define | MBEDTLS_ERR_ARIA_FEATURE_UNAVAILABLE -0x005A |
| Feature not available. | |
| #define | MBEDTLS_ERR_ARIA_HW_ACCEL_FAILED -0x0058 |
| ARIA hardware accelerator failed. | |
Typedefs | |
| typedef struct mbedtls_aria_context | mbedtls_aria_context |
| The ARIA context-type definition. | |
Functions | |
| void | mbedtls_aria_init (mbedtls_aria_context *ctx) |
| This function initializes the specified ARIA context. | |
| 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. | |
| int | mbedtls_aria_setkey_dec (mbedtls_aria_context *ctx, const unsigned char *key, unsigned int keybits) |
| This function sets the decryption key. | |
| 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. | |
| 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. | |
ARIA block cipher.
The ARIA algorithm is a symmetric block cipher that can encrypt and decrypt information. It is defined by the Korean Agency for Technology and Standards (KATS) in <em>KS X 1213:2004</em> (in Korean, but see http://210.104.33.10/ARIA/index-e.html in English) and also described by the IETF in <em>RFC 5794</em>.
Definition in file aria.h.