traits icon indicating copy to clipboard operation
traits copied to clipboard

Collection of cryptography-related traits

Results 99 traits issues
Sort by recently updated
recently updated
newest added

This is admittedly a very nit-picky change, but according to the Subtle documentation (https://docs.rs/subtle/latest/subtle/struct.Choice.html#note), a `Choice` should be converted to a `bool` using the `From` implementation. Specifically they added the...

This trait is used for saving internal state of the hash core and restoring it later. The original issue was discussed here: https://github.com/RustCrypto/hashes/issues/310

[The README for the `digest` crate](https://github.com/RustCrypto/traits/blob/master/digest/README.md) currently contains the following example: ```rust use blake2::{Blake2b, Digest}; let mut hasher = Blake2b::new(); let data = b"Hello world!"; hasher.input(data); // `input` can be...

Digest now makes use of several vaguely-named generic wrapper structs and type aliases to give them human-readable names. This makes both the type names emitted by rustc and the resulting...

digest

In upgrading many projects, I frequently ran into the following: ``` error[E0034]: multiple applicable items in scope | let mut mac = Aes128Cmac::new_from_slice(&key)?; | ^^^^^^^^^^^^^^ multiple `new_from_slice` found | =...

See https://github.com/RustCrypto/password-hashes/pull/313. Sometimes a very specific output size is expected. Any bike-shedding is very welcome.

password-hash

I've recently needed to compare a symmetric hmac signature against a `&[u8]`. Usually, this is easily possible via [`Mac::verify_slice`](https://docs.rs/hmac/latest/hmac/trait.Mac.html#tymethod.verify_slice) but this moved `self` and I only had `&mut self`. I...

digest

Understanding the arguments pro/con coordinates from https://github.com/RustCrypto/traits/pull/817... For a generic-ish Frost implementation, I have need to determine if the output of distributed keygen has even y-coordinate, to perform the Taproot...

elliptic-curve

It looks like argon2's [`hash_password`](https://docs.rs/argon2/latest/argon2/struct.Argon2.html#method.hash_password) takes any string slice as a salt parameter. This invites API misuse; particularly specifying static salts or attempting 'clever' salt generation methods that ultimately weaken...

password-hash
breaking

In many cases, plaintext and ciphertext input is not divisible by the block size, and padding is often used. In practical use, however, this is not always done, and the...

cipher