traits
traits copied to clipboard
Collection of cryptography-related traits
Currently we don't have traits/types for authenticated encryption (without associated data). We could implement EtM, E&M and MTE constructs generically over stream ciphers/block modes and MACs. But it's not clear...
In vladikoff/rust-hkdf#6, we're talking about whether you'd like to see rust-hkdf moved under the RustCrypto umbrella (Vlad just released 0.2.0, which uses the Digest and Hmac traits from RustCrypto). I'm...
Probably depends on introduction of a block-level trait for (synchronous) stream ciphers. After that a feature-gated blanket implementation will look somewhat like this: ```rust impl XofReader for XofReaderCoreWrapper { .....
There are at least three algorithms in [RustCrypto/password-hashes](https://github.com/RustCrypto/password-hashes/) which would benefit from parallelism: `argon2`, `pbkdf2`, and `scrypt`. However, of those, only `pkbdf2` presently has a parallel implementation (using `rayon`) It...
SIMD implementations of UHFs are able to process multiple input blocks in parallel. However `UniversalHash::update` only processes one-block-at-a-time. There's some precedent for parallel block processing in the `block-cipher` crate, which...
Some hardware implementations (e.g. of AES) need particular alignment of blocks to operate directly over AHB (e.g. NXP LPC55's HASHCRYPT wants 32-bit alignment, I can imagine this is a typical...
Previously discussed in RustCrypto/AEADs#220
Continuing the discussion from https://github.com/RustCrypto/AEADs/pull/3#issuecomment-523557454 It'd be good to have traits for implementing AEADs based on stream ciphers. The [`aead` crate](https://github.com/RustCrypto/traits/tree/master/aead) presents an interface which is generic enough to incorporate...
It would be nice to refer to the trait crates for advanced examples from implementation crates.
The `signature` crate contains the following traits which are presently gated under the `digest-preview` feature: - [`DigestSignature`](https://docs.rs/signature/1.0.0-pre.5/signature/trait.DigestSignature.html) - marker trait for signature algorithms based on a simple "prehash" structure. This...