Crates.io | sysfunc-blockcipher-xtea |
lib.rs | sysfunc-blockcipher-xtea |
version | 0.1.1 |
source | src |
created_at | 2019-04-27 23:03:55.009839 |
updated_at | 2019-04-28 00:34:02.70203 |
description | Simple XTEA block cipher implementation #![no_std]. |
homepage | https://github.com/sysfunc/sysfunc-blockcipher-xtea.rs/ |
repository | https://github.com/sysfunc/sysfunc-blockcipher-xtea.rs/ |
max_upload_size | |
id | 130572 |
size | 12,834 |
Simple XTEA implementation (pure Rust).
Heavily (internally) documented implementation of XTEA for the purposes of having a liberally licensed version of it available for general use. Implemented against the original public domain code by David Wheeler and Roger Needham.
API is simple, with the DELTA
and passed into the functions as needed, allowing for non-standard delta to be used (as is surprisingly common).
/// Enciphers the blocks in place.
pub fn encipher(blocks: &mut [u32], key: &[u32], delta: u32, rounds: usize);
/// Deciphers the blocks in place.
pub fn decipher(blocks: &mut [u32], key: &[u32], delta: u32, rounds: usize);
Typically this cipher is weak, and has known attacks against it.
This project is licensed under the ISC Licence. See LICENCE
.