From 83cc27c51576ab22569b3b16c3c143ba619d3e63 Mon Sep 17 00:00:00 2001 From: Artyom Pavlov Date: Thu, 27 Oct 2022 03:46:53 +0000 Subject: [PATCH] aria: add benchmarks and release v0.1.0 (#342) --- aria/CHANGELOG.md | 6 ++++-- aria/benches/mod.rs | 14 ++++++++++++++ 2 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 aria/benches/mod.rs diff --git a/aria/CHANGELOG.md b/aria/CHANGELOG.md index 956a57d2..a453507a 100644 --- a/aria/CHANGELOG.md +++ b/aria/CHANGELOG.md @@ -5,5 +5,7 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## 0.1.0 (UNRELEASED) -- Initial release +## 0.1.0 (2022-10-27) +- Initial release ([#340]) + +[#340]: https://github.com/RustCrypto/block-ciphers/pull/340 diff --git a/aria/benches/mod.rs b/aria/benches/mod.rs new file mode 100644 index 00000000..7fbff7ab --- /dev/null +++ b/aria/benches/mod.rs @@ -0,0 +1,14 @@ +#![feature(test)] +extern crate test; + +use aria::{Aria128, Aria192, Aria256}; +use cipher::{block_decryptor_bench, block_encryptor_bench}; + +block_encryptor_bench!(Key: Aria128, aria128_encrypt_block, aria128_encrypt_blocks); +block_decryptor_bench!(Key: Aria128, aria128_decrypt_block, aria128_decrypt_blocks); + +block_encryptor_bench!(Key: Aria192, aria192_encrypt_block, aria192_encrypt_blocks); +block_decryptor_bench!(Key: Aria192, aria192_decrypt_block, aria192_decrypt_blocks); + +block_encryptor_bench!(Key: Aria256, aria256_encrypt_block, aria256_encrypt_blocks); +block_decryptor_bench!(Key: Aria256, aria256_decrypt_block, aria256_decrypt_blocks);