| Crates.io | ctaes-rs |
| lib.rs | ctaes-rs |
| version | 0.1.2 |
| created_at | 2025-05-15 15:22:45.745073+00 |
| updated_at | 2025-08-04 16:45:41.908837+00 |
| description | Rust bindings and API for CTAES a constant-time AES implementation from Bitcoin Core https://github.com/bitcoin-core/ctaes |
| homepage | https://github.com/ElementsProject/rust-ctaes/ |
| repository | https://github.com/ElementsProject/rust-ctaes/ |
| max_upload_size | |
| id | 1675231 |
| size | 86,483 |
Rust bindings and API for CTAES (constant-time AES implementation from Bitcoin Core found at https://github.com/bitcoin-core/ctaes)
The CTAES Library provides a constant time implementation of the AES algorithm. For completeness this crate provides the interface to the AES-ECB methods, but they should not be used. Rather, use the AES-CBC methods.
The crate also provides a Padding utility implementation to help the user prepare, pad and unpad buffers. Zero Padding and PKCS7 padding implementations are provided
Run cargo doc --nodeps to generate the documentation of the library.
This is a low-level encryption library and should be employed in conjunction with a message authentication scheme to avoid chosen-ciphertext and chosen-plaintext attacks.
This crate requires Rust 1.63.0 or later.