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

There hasn't been a commit here in a couple years. It seems like the spiritual successor is https://github.com/RustCrypto.

A quick PR to add some extra high level documentation.

Dependencies ```toml rand="0.7.2" rust-crypto = "0.2.36" rustc-serialize = "0.3.24" ``` ```rust use rand; use crypto::aessafe::AesSafe128Encryptor; use crypto::symmetriccipher::BlockEncryptor; fn encrypt(key: &[u8], input: &[u8], output: &mut [u8]) { let encryptor = AesSafe128Encryptor::new(key);...

Fixes the build problem which arises when the * host is windows * target is x86_64-pc-windows-gnu The problem is fixed by setting the compiler to gcc.

I am running a Travis cross compiler job for my crate which indirectly depends on rust-crypto and I am getting a weired compiler error depending on what standard library is...

``` error[E0046]: not all trait items implemented, missing: `encode` --> /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-serialize-0.3.24/src/serialize.rs:1358:1 | 853 | fn encode(&self, s: &mut S) -> Result; | ---------------------------------------------------------------- `encode` from trait ... 1358 | impl...

I would like to chain into a SymmetricCipherError and noticed that this trait impl was missing.

[crypto::symmetriccipher::SymmetricCipherError](http://ironframework.io/doc/crypto/symmetriccipher/enum.SymmetricCipherError.html) doesn't implement [std::error::Error](http://doc.rust-lang.org/stable/std/error/trait.Error.html). It probably should do so.

`::reseed()` should not be a public-facing API (easy to misuse). `::reseed()` incorrectly implements SHA_d-256(). (It's missing zero blocks as initial input to the inner invocation of SHA256.) I don't believe...