block-ciphers
block-ciphers copied to clipboard
Collection of block cipher algorithms written in pure Rust
VAES support
Vectorized AES can process more than one block at a time, greatly improving throughput, but it doesn't appear to be used by `aes` crate yet, which is unfortunate.
This PR implements XTEA as described by various sources, including https://en.wikipedia.org/wiki/XTEA, XTEA is a historical cipher, which is no longer commonly used today, but some legacy software still uses it...
I wanted to encrypt something using AES in my app so I found the `aes` crate on docs.rs. It mentions the following: > ⚠️ Security Warning: Hazmat! > This crate...
Currently, there is no way to update the tweak value between successive encrypt/decrypt calls without creating a new cipher instance. This is inefficient and it would be appreciated if you...
Part of https://github.com/RustCrypto/block-ciphers/issues/1 Hi there. I implemented rc6. Implementation and documentation are aligned with rc5 implementation. I referred following document for key schedule, encryption and decryption algorithms. https://www.grc.com/r&d/rc6.pdf I checked...
Rust 1.89 beta is now out and includes initial stabilizations of AVX-512 target features: https://github.com/rust-lang/rust/pull/138940 cc @silvanshade
There are wider instructions on aarch64 just like VAES on x86-64. GitHub Actions runners like `ubuntu-24.04-arm` support them, which should help with testing: > Architecture: aarch64 CPU op-mode(s): 32-bit, 64-bit...
Add const time column to the algorithms table and mention const time properties in each crate README
We have several crates which are known to be const time (e.g. `aes` and `serpent`), while others are known to perform table indexing based on secret data (e.g. `kuznyechik`). We...
- Includes encryption and decryption functions. - Tested using sample vectors to ensure correctness. - Added Docs
I built [a benchmark tool](https://github.com/starius/rust-aes-ctr-bench) which measures throughput of AES-CTR on 8k buffer using various versions of `aes`. I noticed a significant slowdown between 0.8.4 and 0.9.0-rc.2 versions. I think...