sysfunc-blockcipher-xtea

Crates.iosysfunc-blockcipher-xtea
lib.rssysfunc-blockcipher-xtea
version0.1.1
sourcesrc
created_at2019-04-27 23:03:55.009839
updated_at2019-04-28 00:34:02.70203
descriptionSimple XTEA block cipher implementation #![no_std].
homepagehttps://github.com/sysfunc/sysfunc-blockcipher-xtea.rs/
repositoryhttps://github.com/sysfunc/sysfunc-blockcipher-xtea.rs/
max_upload_size
id130572
size12,834
A.W. Stanley (awstanley)

documentation

README

XTEA

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);

Usage

Typically this cipher is weak, and has known attacks against it.

Licence

This project is licensed under the ISC Licence. See LICENCE.

Commit count: 0

cargo fmt