Crate aria

Crate aria 

Source
Expand description

Pure Rust implementation of the ARIA block cipher (RFC 5794).

§⚠️ Security Warning: Hazmat!

This crate implements only the low-level block cipher function, and is intended for use for implementing higher-level constructions only. It is NOT intended for direct use in applications.

USE AT YOUR OWN RISK!

§Examples

use aria::cipher::{Array, BlockCipherDecrypt, BlockCipherEncrypt, KeyInit};
use aria::Aria128;

let key = Array::from([0u8; 16]);
let mut block = Array::from([0u8; 16]);
// Initialize cipher
let cipher = Aria128::new(&key);

let block_copy = block.clone();
// Encrypt block in-place
cipher.encrypt_block(&mut block);
// And decrypt it back
cipher.decrypt_block(&mut block);
assert_eq!(block, block_copy);

Re-exports§

pub use cipher;

Structs§

Aria
Generic implementation of the ARIA block cipher.

Type Aliases§

Aria128
ARIA-128 block cipher instance.
Aria192
ARIA-192 block cipher instance.
Aria256
ARIA-256 block cipher instance.