Crates.io | lioness |
lib.rs | lioness |
version | 0.1.2 |
source | src |
created_at | 2016-12-23 11:32:08.654479 |
updated_at | 2019-06-23 11:20:30.546239 |
description | Lioness wide block cipher |
homepage | https://github.com/burdges/lioness-rs |
repository | https://github.com/burdges/lioness-rs.git |
max_upload_size | |
id | 7739 |
size | 29,269 |
This crate provides the Lioness wide block cipher instantiated with ChaCha20 and Blake2b.
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:
[dependencies]
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.