Skip to content

Commit

Permalink
aria: add benchmarks and release v0.1.0 (#342)
Browse files Browse the repository at this point in the history
  • Loading branch information
newpavlov committed Oct 27, 2022
1 parent 9119944 commit 83cc27c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
6 changes: 4 additions & 2 deletions aria/CHANGELOG.md
Expand Up @@ -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
14 changes: 14 additions & 0 deletions 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);

0 comments on commit 83cc27c

Please sign in to comment.