-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rc5: unlock parameter size, add u128 and u8 word size support. (#382)
Closes #381
- Loading branch information
Showing
8 changed files
with
187 additions
and
29 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,28 @@ | ||
#![feature(test)] | ||
extern crate test; | ||
|
||
use cipher::consts::*; | ||
use cipher::{block_decryptor_bench, block_encryptor_bench}; | ||
use rc5::{RC5_32_12_16, RC5_32_16_16}; | ||
use rc5::RC5; | ||
|
||
block_encryptor_bench!( | ||
Key: RC5_32_12_16, | ||
Key: RC5<u32, U12, U16>, | ||
rc5_32_12_16_encrypt_block, | ||
rc5_32_12_16_encrypt_blocks, | ||
); | ||
block_decryptor_bench!( | ||
Key: RC5_32_12_16, | ||
Key: RC5<u32, U12, U16>, | ||
rc5_32_12_16_decrypt_block, | ||
rc5_32_12_16_decrypt_blocks, | ||
); | ||
|
||
block_encryptor_bench!( | ||
Key: RC5_32_16_16, | ||
Key: RC5<u32, U16, U16>, | ||
rc5_32_16_16_encrypt_block, | ||
rc5_32_16_16_encrypt_blocks, | ||
); | ||
block_decryptor_bench!( | ||
Key: RC5_32_16_16, | ||
Key: RC5<u32, U16, U16>, | ||
rc5_32_16_16_decrypt_block, | ||
rc5_32_16_16_decrypt_blocks, | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,5 @@ | |
mod block_cipher; | ||
mod core; | ||
|
||
pub use crate::core::RC5; | ||
pub use block_cipher::*; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters