Crates.io | miscreant-aes-v05 |
lib.rs | miscreant-aes-v05 |
version | 0.5.2 |
source | src |
created_at | 2021-07-30 19:39:01.905216 |
updated_at | 2021-07-30 19:39:01.905216 |
description | Temporary fork |
homepage | https://lib.rs/crates/miscreant-aes-v05 |
repository | https://github.com/miscreant/miscreant.rs |
max_upload_size | |
id | 429399 |
size | 31,283 |
Miscreant is no-longer maintained! The Rust successor is the aes-siv
crate, which is the evolution of the original Miscreant codebase.
The best crypto you've never heard of, brought to you by Phil Rogaway
Rust implementation of Miscreant: Advanced symmetric encryption library which provides the AES-SIV (RFC 5297), AES-PMAC-SIV, and STREAM constructions. These algorithms are easy-to-use (or rather, hard-to-misuse) and support encryption of individual messages or message streams.
AES-SIV and AES-PMAC-SIV provide nonce-reuse misuse-resistance (NRMR): accidentally reusing a nonce with this construction is not a security catastrophe, unlike more popular AES encryption modes like AES-GCM where nonce reuse leaks both the authentication key and the XOR of both plaintexts, both of which can potentially be leveraged for full plaintext recovery attacks.
With AES-SIV, the worst outcome of reusing a nonce is an attacker can see you've sent the same plaintext twice, as opposed to almost all other AES modes where it can facilitate chosen ciphertext attacks.
miscreant.rs requires Rust 1.36+.
To enable hardware accelerated AES support on x86/x86_64 using Intel AES-NI
instructions, you will need to pass the following RUSTFLAGS
:
RUSTFLAGS=-Ctarget-feature=+aes,+ssse3
You can configure your ~/.cargo/config
to always pass these flags:
[build]
rustflags = ["-Ctarget-feature=+aes,+ssse3"]
Have questions? Want to suggest a feature or change?
Though this library is written by cryptographic professionals, it has not undergone a thorough security audit, and cryptographic professionals are still humans that make mistakes.
This library makes an effort to use constant time operations throughout its implementation, however actual constant time behavior has not been verified.
Use this library at your own risk.
We abide by the Contributor Covenant and ask that you do as well.
For more information, please see CODE_OF_CONDUCT.md.
Bug reports and pull requests are welcome on GitHub at https://github.com/miscreant/miscreant
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as noted below, without any additional terms or conditions.
Copyright (c) 2017-2019 The Miscreant Developers.
miscreant.rs is licensed under either of:
at your option.