Rivest cipher

Simple Rust module with Rivest Cipher implementation.

Implemented schemes

Usage

Installation

cargo add rivest_cipher

Example

```rust use rivest_cipher::schemes::rc5;

let key: [u8; 64] = { ... }; let plaintext: [u8; 16] = { ... };

let encryptor: Rc5 = rc5::setup::(&key, 12); let ciphertext: Vec = encryptor.encrypt(&plaintext).unwrap();

asserteq!(plaintext.asslice(), encryptor.decrypt(&ciphertext).unwrap().as_slice()); ```