2 releases

Uses old Rust 2015

0.1.2 Jun 23, 2019
0.1.1 Sep 21, 2017
0.1.0 Dec 23, 2016

#1822 in Cryptography

Download history 28906/week @ 2023-12-04 22389/week @ 2023-12-11 19829/week @ 2023-12-18 7343/week @ 2023-12-25 13325/week @ 2024-01-01 17737/week @ 2024-01-08 25417/week @ 2024-01-15 25127/week @ 2024-01-22 22518/week @ 2024-01-29 24405/week @ 2024-02-05 27540/week @ 2024-02-12 32638/week @ 2024-02-19 30481/week @ 2024-02-26 24834/week @ 2024-03-04 31036/week @ 2024-03-11 31498/week @ 2024-03-18

119,085 downloads per month
Used in 83 crates (2 directly)

MIT/Apache

18KB
245 lines

This crate provides the Lioness wide block cipher instantiated with ChaCha20 and Blake2b.

build status documenation crates.io link

Warning

This code has not been formally audited and should only be use with extreme care and advice from competent cryptographers. That said, Lionness' security properties mostly reduce to the underlying stream cipher and hash function.

Details

Lioness is a wide block cipher built from a stream cipher and a hash function. It remains secure so long as either the stream cipher or the hash function remains secure. Lioness is described in Two Practical and Provably Secure Block Ciphers: BEAR and LION by Ross Anderson and Eli Biham. See https://www.cl.cam.ac.uk/~rja14/Papers/bear-lion.pdf

We instantiate Lioness with Chacha20 and Blake2b here, but you can easily alter these choices so long as the digest output is equal to the stream cipher key size.

Documentation is available at https://docs.rs/lioness/

Installation

This crate works with Cargo and is on crates.io. Add it to your Cargo.toml with:

[dependencies]
lioness = "^0.1"

Use the crate like:

extern crate lioness;

...

License

Lioness-rs is free software made available via the MIT License. License details located in the LICENSE file.

Dependencies

~615KB
~13K SLoC