aria.h File Reference

ARIA encryption algorithm. More...

#include "core/crypto.h"

Go to the source code of this file.

Data Structures

struct  AriaContext
 ARIA algorithm context. More...
 

Macros

#define ARIA_BLOCK_SIZE   16
 
#define ARIA_CIPHER_ALGO   (&ariaCipherAlgo)
 

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]
 
const uint8_t ARIA128_CBC_OID [9]
 
const uint8_t ARIA128_CFB_OID [9]
 
const uint8_t ARIA128_OFB_OID [9]
 
const uint8_t ARIA128_CTR_OID [9]
 
const uint8_t ARIA192_ECB_OID [9]
 
const uint8_t ARIA192_CBC_OID [9]
 
const uint8_t ARIA192_CFB_OID [9]
 
const uint8_t ARIA192_OFB_OID [9]
 
const uint8_t ARIA192_CTR_OID [9]
 
const uint8_t ARIA256_ECB_OID [9]
 
const uint8_t ARIA256_CBC_OID [9]
 
const uint8_t ARIA256_CFB_OID [9]
 
const uint8_t ARIA256_OFB_OID [9]
 
const uint8_t ARIA256_CTR_OID [9]
 
const uint8_t ARIA128_GCM_OID [9]
 
const uint8_t ARIA192_GCM_OID [9]
 
const uint8_t ARIA256_GCM_OID [9]
 
const uint8_t ARIA128_CCM_OID [9]
 
const uint8_t ARIA192_CCM_OID [9]
 
const uint8_t ARIA256_CCM_OID [9]
 
const CipherAlgo ariaCipherAlgo
 

Detailed Description

ARIA encryption algorithm.

License

SPDX-License-Identifier: GPL-2.0-or-later

Copyright (C) 2010-2024 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.

Author
Oryx Embedded SARL (www.oryx-embedded.com)
Version
2.4.4

Definition in file aria.h.

Macro Definition Documentation

◆ ARIA_BLOCK_SIZE

#define ARIA_BLOCK_SIZE   16

Definition at line 38 of file aria.h.

◆ ARIA_CIPHER_ALGO

#define ARIA_CIPHER_ALGO   (&ariaCipherAlgo)

Definition at line 40 of file aria.h.

Function Documentation

◆ ariaDecryptBlock()

void ariaDecryptBlock ( AriaContext context,
const uint8_t *  input,
uint8_t *  output 
)

Decrypt a 16-byte block using ARIA algorithm.

Parameters
[in]contextPointer to the ARIA context
[in]inputCiphertext block to decrypt
[out]outputPlaintext block resulting from decryption

Definition at line 560 of file aria.c.

◆ ariaDeinit()

void ariaDeinit ( AriaContext context)

Release ARIA context.

Parameters
[in]contextPointer to the ARIA context

Definition at line 625 of file aria.c.

◆ ariaEncryptBlock()

void ariaEncryptBlock ( AriaContext context,
const uint8_t *  input,
uint8_t *  output 
)

Encrypt a 16-byte block using ARIA algorithm.

Parameters
[in]contextPointer to the ARIA context
[in]inputPlaintext block to encrypt
[out]outputCiphertext block resulting from encryption

Definition at line 493 of file aria.c.

◆ ariaInit()

error_t ariaInit ( AriaContext context,
const uint8_t *  key,
size_t  keyLen 
)

Initialize a ARIA context using the supplied key.

Parameters
[in]contextPointer to the ARIA context to initialize
[in]keyPointer to the key
[in]keyLenLength of the key
Returns
Error code

Definition at line 345 of file aria.c.

Variable Documentation

◆ ARIA128_CBC_OID

const uint8_t ARIA128_CBC_OID[9]
extern

Definition at line 239 of file aria.c.

◆ ARIA128_CCM_OID

const uint8_t ARIA128_CCM_OID[9]
extern

Definition at line 277 of file aria.c.

◆ ARIA128_CFB_OID

const uint8_t ARIA128_CFB_OID[9]
extern

Definition at line 241 of file aria.c.

◆ ARIA128_CTR_OID

const uint8_t ARIA128_CTR_OID[9]
extern

Definition at line 245 of file aria.c.

◆ ARIA128_ECB_OID

const uint8_t ARIA128_ECB_OID[9]
extern

Definition at line 237 of file aria.c.

◆ ARIA128_GCM_OID

const uint8_t ARIA128_GCM_OID[9]
extern

Definition at line 270 of file aria.c.

◆ ARIA128_OFB_OID

const uint8_t ARIA128_OFB_OID[9]
extern

Definition at line 243 of file aria.c.

◆ ARIA192_CBC_OID

const uint8_t ARIA192_CBC_OID[9]
extern

Definition at line 250 of file aria.c.

◆ ARIA192_CCM_OID

const uint8_t ARIA192_CCM_OID[9]
extern

Definition at line 279 of file aria.c.

◆ ARIA192_CFB_OID

const uint8_t ARIA192_CFB_OID[9]
extern

Definition at line 252 of file aria.c.

◆ ARIA192_CTR_OID

const uint8_t ARIA192_CTR_OID[9]
extern

Definition at line 256 of file aria.c.

◆ ARIA192_ECB_OID

const uint8_t ARIA192_ECB_OID[9]
extern

Definition at line 248 of file aria.c.

◆ ARIA192_GCM_OID

const uint8_t ARIA192_GCM_OID[9]
extern

Definition at line 272 of file aria.c.

◆ ARIA192_OFB_OID

const uint8_t ARIA192_OFB_OID[9]
extern

Definition at line 254 of file aria.c.

◆ ARIA256_CBC_OID

const uint8_t ARIA256_CBC_OID[9]
extern

Definition at line 261 of file aria.c.

◆ ARIA256_CCM_OID

const uint8_t ARIA256_CCM_OID[9]
extern

Definition at line 281 of file aria.c.

◆ ARIA256_CFB_OID

const uint8_t ARIA256_CFB_OID[9]
extern

Definition at line 263 of file aria.c.

◆ ARIA256_CTR_OID

const uint8_t ARIA256_CTR_OID[9]
extern

Definition at line 267 of file aria.c.

◆ ARIA256_ECB_OID

const uint8_t ARIA256_ECB_OID[9]
extern

Definition at line 259 of file aria.c.

◆ ARIA256_GCM_OID

const uint8_t ARIA256_GCM_OID[9]
extern

Definition at line 274 of file aria.c.

◆ ARIA256_OFB_OID

const uint8_t ARIA256_OFB_OID[9]
extern

Definition at line 265 of file aria.c.

◆ ariaCipherAlgo

const CipherAlgo ariaCipherAlgo
extern

Definition at line 284 of file aria.c.