rust-crypto icon indicating copy to clipboard operation
rust-crypto copied to clipboard

A (mostly) pure-Rust implementation of various cryptographic algorithms.

Results 103 rust-crypto issues
Sort by recently updated
recently updated
newest added

On my skylake processor, if I compile rustc-crypto using `cargo rustc --release -- -C target-cpu=native` `CbcEncryptorProcessor::process_block` will be unrolled and optimized with ymm registers for 64 bytes of input. If...

I might have the wrong place, but I think I've narrowed a failing build down to this helper function not being compiled for arm64. I'm trying to build a project...

Currently, if one wants to peek at `x` bytes in buffer `b`, one has to use `b.peek_next(b.capacity() - b.remaining() + x)` This commit changes the slice indices to match RefReadBuffer.take_next()

In https://github.com/DaGenix/rust-crypto/blob/master/src/blockmodes.rs#L684 it is possible to create a CTR-mode `BlockEncryptor` whose IV is larger than the 16-byte AES block size. This is a simple programming error but is extremely dangerous,...

I was playing around with CMAC and I thought I'd contribute back what code I have. I'm still learning rust, so the code is by no means perfect. Also, given...

I've been using rust-crypto as the main crypto library for a multi-platform library I'm developing. One of those platforms however doesn't have an allocator and so I can't use crates...

The AES-NI code in [aesni_helpers.c](https://github.com/DaGenix/rust-crypto/blob/master/src/aesni_helpers.c) uses the AVX instruction `vpslldq` but Westmere machines (and possibly others) support AES-NI but do not support the AVX instructions. Because of this, the AES...

If it's desirable to keep last_reseed_time at 8 bytes then instead of initializing last_reseed_time as None it could be set to Instant::now() - Duration::from_millis(200)