rc6_rs
A Rust implementation of the RC6 block cipher, translated from libtomcrypto using c2rust.
Features
- RC6 block cipher implementation (128-bit blocks)
- Variable key sizes (16, 24, 32 bytes)
- Compatible with the
RustCryptocrate traits - Safe Rust API over translated C code
Usage
use Rc6;
use U32;
// Create cipher with 32-byte key
let key = ;
let cipher = new; // 20 rounds
// Encrypt 16-byte block
let plaintext = ;
let ciphertext = cipher.encrypt.unwrap;
// Decrypt
let decrypted = cipher.decrypt.unwrap;
assert_eq!;