Mbed TLS v3.6.7
Loading...
Searching...
No Matches
aria.h
Go to the documentation of this file.
1
12/*
13 * Copyright The Mbed TLS Contributors
14 * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
15 */
16
17#ifndef MBEDTLS_ARIA_H
18#define MBEDTLS_ARIA_H
20
21#include "mbedtls/build_info.h"
22
23#include <stddef.h>
24#include <stdint.h>
25
27
28#define MBEDTLS_ARIA_ENCRYPT 1
29#define MBEDTLS_ARIA_DECRYPT 0
30
31#define MBEDTLS_ARIA_BLOCKSIZE 16
32#define MBEDTLS_ARIA_MAX_ROUNDS 16
33#define MBEDTLS_ARIA_MAX_KEYSIZE 32
34
36#define MBEDTLS_ERR_ARIA_BAD_INPUT_DATA -0x005C
37
39#define MBEDTLS_ERR_ARIA_INVALID_INPUT_LENGTH -0x005E
40
41#ifdef __cplusplus
42extern "C" {
43#endif
44
45#if !defined(MBEDTLS_ARIA_ALT)
46// Regular implementation
47//
48
58
59#else /* MBEDTLS_ARIA_ALT */
60#include "aria_alt.h"
61#endif /* MBEDTLS_ARIA_ALT */
62
72
81
98 const unsigned char *key,
99 unsigned int keybits);
100
101#if !defined(MBEDTLS_BLOCK_CIPHER_NO_DECRYPT)
118 const unsigned char *key,
119 unsigned int keybits);
120#endif /* !MBEDTLS_BLOCK_CIPHER_NO_DECRYPT */
121