2 releases

Uses old Rust 2015

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

#2115 in Cryptography

Download history 33282/week @ 2024-03-15 34361/week @ 2024-03-22 38135/week @ 2024-03-29 42432/week @ 2024-04-05 38209/week @ 2024-04-12 40103/week @ 2024-04-19 30378/week @ 2024-04-26 30555/week @ 2024-05-03 35759/week @ 2024-05-10 32460/week @ 2024-05-17 43250/week @ 2024-05-24 30381/week @ 2024-05-31 26599/week @ 2024-06-07 30074/week @ 2024-06-14 32891/week @ 2024-06-21 14388/week @ 2024-06-28

107,278 downloads per month
Used in 88 crates (2 directly)


245 lines

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

build status documenation crates.io link


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.


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/


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

lioness = "^0.1"

Use the crate like:

extern crate lioness;



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


~13K SLoC