utils
utils copied to clipboard
Utility crates used in RustCrypto
Originally filed by @jessa0 as https://github.com/iqlusioninc/crates/issues/782: > It seems the `Zeroize` implementation for `Option where T: Zeroize` has language-level UB here: > > https://github.com/RustCrypto/utils/blob/00b569b52b6dece2a8ae881f8e5a150a45ccc674/zeroize/src/lib.rs#L330 > > I believe, as a...
Note: originally filed by @robinkrahl as https://github.com/iqlusioninc/crates/issues/509 > I have to store a password that will be passed to a C API using the Rust FFI. To avoid unnecessary copies,...
I'm coming at this from the perspective of having need for an allocation-free X509 certificate generator, or more generally, the "DER encoder to end the plethora of semi-done DER encoders"...
In short: it would be good to have a way a standard way to hash structures. Probably the best approach would be to utilize `serde` for this. See this [issue](https://github.com/RustCrypto/hashes/issues/29)...
It would be nice to be able to zeroize the stack, particularly being able to track how deep the stack grew while executing a particular section of code, and then...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2) from 1.0.43 to 1.0.46. Release notes Sourced from proc-macro2's releases. 1.0.46 Make proc_macro2::TokenStream's FromStr impl consistent with proc_macro::TokenStream's on strings that begin with a byte order mark \u{feff}...
According to the [Intel manual](https://www.intel.com/content/dam/develop/external/us/en/documents/36945), when detecting features like AVX and AVX2 we should first check availability of the XGETBV instruction and then check that OS supports XMM and YMM...
I do understand this is opinionated, yet if I want the memory cleared when I'm done with it, I don't want to hear it's still in a log file somewhere....
#862 added initial support for AVX-512, however the following features are still unsupported: - [ ] `avx512vbmi` - [ ] `avx512vbmi2` - [x] `avx512vpopcntdq` - [ ] `avx512vnni` - [x]...