[][src]Crate miscreant

Miscreant: Misuse resistant symmetric encryption library providing the AES-SIV (RFC 5297), AES-PMAC-SIV, and STREAM constructions

Minimum Supported Rust Version (MSRV)

  • Rust 1.36.0

x86/x86_64 targets with AES-NI support

To build this crate with hardware acceleration support on x86/x86_64 targets with AES-NI support, set the following RUSTFLAGS environment variable:

RUSTFLAGS=-Ctarget-feature=+aes,+ssse3

You can configure your ~/.cargo/config to always pass these flags:

[build]
rustflags = ["-Ctarget-feature=+aes,+ssse3"]

Re-exports

pub use aes_siv::aead::generic_array;

Modules

ffi

ffi.rs: Foreign Function Interface providing C ABI

stream

stream.rs: The STREAM online authenticated encryption construction. See https://eprint.iacr.org/2015/189.pdf for definition.

Structs

Error

Traits

Aead

An Authenticated Encryption with Associated Data (AEAD) algorithm.

Type Definitions

Aes128Siv

AES-CMAC-SIV with a 128-bit key

Aes128PmacSiv

AES-PMAC-SIV with a 128-bit key

Aes128SivAead

AES-CMAC-SIV in AEAD mode with 256-bit key size (128-bit security)

Aes128PmacSivAead

AES-PMAC-SIV in AEAD mode with 256-bit key size (128-bit security)

Aes256Siv

AES-CMAC-SIV with a 256-bit key

Aes256PmacSiv

AES-PMAC-SIV with a 256-bit key

Aes256SivAead

AES-CMAC-SIV in AEAD mode with 512-bit key size (256-bit security)

Aes256PmacSivAead

AES-PMAC-SIV in AEAD mode with 512-bit key size (256-bit security)