ARIA encryption algorithm. More...
Go to the source code of this file.
| Macros | |
| #define | TRACE_LEVEL CRYPTO_TRACE_LEVEL | 
| #define | MOV128(b, a) | 
| #define | XOR128(b, a) | 
| #define | ROL128(b, a, n) | 
| #define | X(n) ((x[(n) / 4] >> ((3 - ((n) % 4)) * 8)) & 0xFF) | 
| #define | SL1(b, a) | 
| #define | SL2(b, a) | 
| #define | A(b, a) | 
| Functions | |
| error_t | ariaInit (AriaContext *context, const uint8_t *key, size_t keyLen) | 
| Initialize a ARIA context using the supplied key.  More... | |
| void | ariaEncryptBlock (AriaContext *context, const uint8_t *input, uint8_t *output) | 
| Encrypt a 16-byte block using ARIA algorithm.  More... | |
| void | ariaDecryptBlock (AriaContext *context, const uint8_t *input, uint8_t *output) | 
| Decrypt a 16-byte block using ARIA algorithm.  More... | |
| void | ariaDeinit (AriaContext *context) | 
| Release ARIA context.  More... | |
| Variables | |
| const uint8_t | ARIA128_ECB_OID [9] = {0x2A, 0x83, 0x1A, 0x8C, 0x9A, 0x6E, 0x01, 0x01, 0x01} | 
| const uint8_t | ARIA128_CBC_OID [9] = {0x2A, 0x83, 0x1A, 0x8C, 0x9A, 0x6E, 0x01, 0x01, 0x02} | 
| const uint8_t | ARIA128_CFB_OID [9] = {0x2A, 0x83, 0x1A, 0x8C, 0x9A, 0x6E, 0x01, 0x01, 0x03} | 
| const uint8_t | ARIA128_OFB_OID [9] = {0x2A, 0x83, 0x1A, 0x8C, 0x9A, 0x6E, 0x01, 0x01, 0x04} | 
| const uint8_t | ARIA128_CTR_OID [9] = {0x2A, 0x83, 0x1A, 0x8C, 0x9A, 0x6E, 0x01, 0x01, 0x05} | 
| const uint8_t | ARIA192_ECB_OID [9] = {0x2A, 0x83, 0x1A, 0x8C, 0x9A, 0x6E, 0x01, 0x01, 0x06} | 
| const uint8_t | ARIA192_CBC_OID [9] = {0x2A, 0x83, 0x1A, 0x8C, 0x9A, 0x6E, 0x01, 0x01, 0x07} | 
| const uint8_t | ARIA192_CFB_OID [9] = {0x2A, 0x83, 0x1A, 0x8C, 0x9A, 0x6E, 0x01, 0x01, 0x08} | 
| const uint8_t | ARIA192_OFB_OID [9] = {0x2A, 0x83, 0x1A, 0x8C, 0x9A, 0x6E, 0x01, 0x01, 0x09} | 
| const uint8_t | ARIA192_CTR_OID [9] = {0x2A, 0x83, 0x1A, 0x8C, 0x9A, 0x6E, 0x01, 0x01, 0x0A} | 
| const uint8_t | ARIA256_ECB_OID [9] = {0x2A, 0x83, 0x1A, 0x8C, 0x9A, 0x6E, 0x01, 0x01, 0x0B} | 
| const uint8_t | ARIA256_CBC_OID [9] = {0x2A, 0x83, 0x1A, 0x8C, 0x9A, 0x6E, 0x01, 0x01, 0x0C} | 
| const uint8_t | ARIA256_CFB_OID [9] = {0x2A, 0x83, 0x1A, 0x8C, 0x9A, 0x6E, 0x01, 0x01, 0x0D} | 
| const uint8_t | ARIA256_OFB_OID [9] = {0x2A, 0x83, 0x1A, 0x8C, 0x9A, 0x6E, 0x01, 0x01, 0x0E} | 
| const uint8_t | ARIA256_CTR_OID [9] = {0x2A, 0x83, 0x1A, 0x8C, 0x9A, 0x6E, 0x01, 0x01, 0x0F} | 
| const uint8_t | ARIA128_GCM_OID [9] = {0x2A, 0x83, 0x1A, 0x8C, 0x9A, 0x6E, 0x01, 0x01, 0x22} | 
| const uint8_t | ARIA192_GCM_OID [9] = {0x2A, 0x83, 0x1A, 0x8C, 0x9A, 0x6E, 0x01, 0x01, 0x23} | 
| const uint8_t | ARIA256_GCM_OID [9] = {0x2A, 0x83, 0x1A, 0x8C, 0x9A, 0x6E, 0x01, 0x01, 0x24} | 
| const uint8_t | ARIA128_CCM_OID [9] = {0x2A, 0x83, 0x1A, 0x8C, 0x9A, 0x6E, 0x01, 0x01, 0x25} | 
| const uint8_t | ARIA192_CCM_OID [9] = {0x2A, 0x83, 0x1A, 0x8C, 0x9A, 0x6E, 0x01, 0x01, 0x26} | 
| const uint8_t | ARIA256_CCM_OID [9] = {0x2A, 0x83, 0x1A, 0x8C, 0x9A, 0x6E, 0x01, 0x01, 0x27} | 
| const CipherAlgo | ariaCipherAlgo | 
Detailed Description
ARIA encryption algorithm.
License
SPDX-License-Identifier: GPL-2.0-or-later
Copyright (C) 2010-2025 Oryx Embedded SARL. All rights reserved.
This file is part of CycloneCRYPTO Open.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Description
ARIA is a 128-bit block cipher with 128-, 192-, and 256-bit keys. The algorithm consists of a key scheduling part and data randomizing part. Refer to RFC 5794 for more details
- Version
- 2.5.4
Definition in file aria.c.
Macro Definition Documentation
◆ A
◆ MOV128
◆ ROL128
◆ SL1
◆ SL2
◆ TRACE_LEVEL
◆ X
◆ XOR128
Function Documentation
◆ ariaDecryptBlock()
| void ariaDecryptBlock | ( | AriaContext * | context, | 
| const uint8_t * | input, | ||
| uint8_t * | output | ||
| ) | 
◆ ariaDeinit()
| void ariaDeinit | ( | AriaContext * | context | ) | 
◆ ariaEncryptBlock()
| void ariaEncryptBlock | ( | AriaContext * | context, | 
| const uint8_t * | input, | ||
| uint8_t * | output | ||
| ) | 
◆ ariaInit()
| error_t ariaInit | ( | AriaContext * | context, | 
| const uint8_t * | key, | ||
| size_t | keyLen | ||
| ) | 
Variable Documentation
◆ ARIA128_CBC_OID
| const uint8_t ARIA128_CBC_OID[9] = {0x2A, 0x83, 0x1A, 0x8C, 0x9A, 0x6E, 0x01, 0x01, 0x02} | 
◆ ARIA128_CCM_OID
| const uint8_t ARIA128_CCM_OID[9] = {0x2A, 0x83, 0x1A, 0x8C, 0x9A, 0x6E, 0x01, 0x01, 0x25} | 
◆ ARIA128_CFB_OID
| const uint8_t ARIA128_CFB_OID[9] = {0x2A, 0x83, 0x1A, 0x8C, 0x9A, 0x6E, 0x01, 0x01, 0x03} | 
◆ ARIA128_CTR_OID
| const uint8_t ARIA128_CTR_OID[9] = {0x2A, 0x83, 0x1A, 0x8C, 0x9A, 0x6E, 0x01, 0x01, 0x05} | 
◆ ARIA128_ECB_OID
| const uint8_t ARIA128_ECB_OID[9] = {0x2A, 0x83, 0x1A, 0x8C, 0x9A, 0x6E, 0x01, 0x01, 0x01} | 
◆ ARIA128_GCM_OID
| const uint8_t ARIA128_GCM_OID[9] = {0x2A, 0x83, 0x1A, 0x8C, 0x9A, 0x6E, 0x01, 0x01, 0x22} | 
◆ ARIA128_OFB_OID
| const uint8_t ARIA128_OFB_OID[9] = {0x2A, 0x83, 0x1A, 0x8C, 0x9A, 0x6E, 0x01, 0x01, 0x04} | 
◆ ARIA192_CBC_OID
| const uint8_t ARIA192_CBC_OID[9] = {0x2A, 0x83, 0x1A, 0x8C, 0x9A, 0x6E, 0x01, 0x01, 0x07} | 
◆ ARIA192_CCM_OID
| const uint8_t ARIA192_CCM_OID[9] = {0x2A, 0x83, 0x1A, 0x8C, 0x9A, 0x6E, 0x01, 0x01, 0x26} | 
◆ ARIA192_CFB_OID
| const uint8_t ARIA192_CFB_OID[9] = {0x2A, 0x83, 0x1A, 0x8C, 0x9A, 0x6E, 0x01, 0x01, 0x08} | 
◆ ARIA192_CTR_OID
| const uint8_t ARIA192_CTR_OID[9] = {0x2A, 0x83, 0x1A, 0x8C, 0x9A, 0x6E, 0x01, 0x01, 0x0A} | 
◆ ARIA192_ECB_OID
| const uint8_t ARIA192_ECB_OID[9] = {0x2A, 0x83, 0x1A, 0x8C, 0x9A, 0x6E, 0x01, 0x01, 0x06} | 
◆ ARIA192_GCM_OID
| const uint8_t ARIA192_GCM_OID[9] = {0x2A, 0x83, 0x1A, 0x8C, 0x9A, 0x6E, 0x01, 0x01, 0x23} | 
◆ ARIA192_OFB_OID
| const uint8_t ARIA192_OFB_OID[9] = {0x2A, 0x83, 0x1A, 0x8C, 0x9A, 0x6E, 0x01, 0x01, 0x09} | 
◆ ARIA256_CBC_OID
| const uint8_t ARIA256_CBC_OID[9] = {0x2A, 0x83, 0x1A, 0x8C, 0x9A, 0x6E, 0x01, 0x01, 0x0C} | 
◆ ARIA256_CCM_OID
| const uint8_t ARIA256_CCM_OID[9] = {0x2A, 0x83, 0x1A, 0x8C, 0x9A, 0x6E, 0x01, 0x01, 0x27} | 
◆ ARIA256_CFB_OID
| const uint8_t ARIA256_CFB_OID[9] = {0x2A, 0x83, 0x1A, 0x8C, 0x9A, 0x6E, 0x01, 0x01, 0x0D} | 
◆ ARIA256_CTR_OID
| const uint8_t ARIA256_CTR_OID[9] = {0x2A, 0x83, 0x1A, 0x8C, 0x9A, 0x6E, 0x01, 0x01, 0x0F} | 
◆ ARIA256_ECB_OID
| const uint8_t ARIA256_ECB_OID[9] = {0x2A, 0x83, 0x1A, 0x8C, 0x9A, 0x6E, 0x01, 0x01, 0x0B} | 
◆ ARIA256_GCM_OID
| const uint8_t ARIA256_GCM_OID[9] = {0x2A, 0x83, 0x1A, 0x8C, 0x9A, 0x6E, 0x01, 0x01, 0x24} | 
◆ ARIA256_OFB_OID
| const uint8_t ARIA256_OFB_OID[9] = {0x2A, 0x83, 0x1A, 0x8C, 0x9A, 0x6E, 0x01, 0x01, 0x0E} | 
◆ ariaCipherAlgo
| const CipherAlgo ariaCipherAlgo | 
