sysfunc-blockcipher-xtea 0.1.1

Simple XTEA block cipher implementation #![no_std].
Documentation
  • Coverage
  • 100%
    5 out of 5 items documented0 out of 4 items with examples
  • Size
  • Source code size: 12.48 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 688.21 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Homepage
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • awstanley

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.