rust-crypto
utils
rust-crypto | utils | |
---|---|---|
2 | 8 | |
1,357 | 408 | |
- | 3.4% | |
0.0 | 8.9 | |
about 1 year ago | 15 days ago | |
Rust | Rust | |
Apache License 2.0 | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
rust-crypto
-
Should we be worried about proliferation of unsafe in Rust code?
3680 in azul 147 in rayon 2 functions and 1 pattern match in ripgrep 25 in rust-crypto
-
Crate for AES256 - which one to choose? Questions about block cipher modes and AEAD too.
rust-crypto (GitHub: DaGenix / rust-crypto) good: support for different algorithms I wanna use for enrypting hashing (the latter is for another project) good: seems easy to use according to the example bad: no audit yet bad: don't know if still maintained, last commit on GitHub is from September 2016
utils
-
Announcing `compact_str` version 0.7! A small string optimization for Rust
I didn't use any inline asm, instead I wrote the simplest if statement possible, which I confirmed on x86_64, x86, and aarch64 compiles down to use the platform's supported conditional move instructions. If this changes in the future and there's a need to write inline asm, you can do so in a portable way, e.g. the cmov crate.
-
Shoot me straight.
There's also cpufeatures which might suit your use case better (depending on exactly how you want to do it).
-
Crate for AES256 - which one to choose? Questions about block cipher modes and AEAD too.
I have seen that RustCrypto also offers a create for securely zeroing memory with: zeroize
-
`kindly`: a simplistic (and hopefully educational) implementation of a set-user-ID-root program (think mini `sudo`) for Linux
The zeroing routine itself looks fine to me. You might want to compare your code with the (already mentioned) zeroize crate, which does something similar (or maybe identical?).
-
Maybe found a Y2k bug in the rust-crypto DER-encoding util?
To save a few clicks, this was found to be, indeed, a Y2K issue, and der v0.4.1 has just been released to fix it. Citing the comment added to the issue after the fact:
-
Incredibly fast UTF-8 validation
I opened a tracking issue for that.
-
Now that the long-awaited const generics (MVP) have come to stable in 1.51, what crates are going to gain the most from it?
https://github.com/RustCrypto/utils/pull/325#issuecomment-791503136
What are some alternatives?
ring - Safe, fast, small crypto using Rust
reference - The Rust Reference
curve25519-dalek - A pure-Rust implementation of group operations on Ristretto and Curve25519
sudo_pair - Plugin for sudo that requires another human to approve and monitor privileged sudo sessions
rust-openssl - OpenSSL bindings for Rust
block-ciphers - Collection of block cipher algorithms written in pure Rust
ed25519-dalek - Fast and efficient ed25519 signing and verification in Rust.
heapless - Heapless, `static` friendly data structures
sodiumoxide - [DEPRECATED] Sodium Oxide: Fast cryptographic library for Rust (bindings to libsodium)
tinyvec - Just, really the littlest Vec you could need. So smol.
rustls - A modern TLS library in Rust
RustCrypto - Authenticated Encryption with Associated Data Algorithms: high-level encryption ciphers