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

I read the below example, can you show how to use other algorithms usage as simple example. thanks ```rust fn main() { let message = "Hello World!"; let mut key:...

It would be great to have support for ECDSA with Brainpool curves, like BrainpoolP256r1: https://tools.ietf.org/html/rfc5639#page-11 Any plans for this?

Implementation of Homomorphic Encryption with some demo example of multiparty computation.

Is it possible to apply sha256 to streaming, to avoid keeping whole buffer in memory?

For let bindings, let x = &foo; is preferred. The type of x is more obvious with the former. Small style fix. If you like I can send more :)

to be used as a KDF like in libsodium sodium_kdf_derive_from_key(). The test output is taken from the libsodium kdf testsuite test and matches.

AES-CBC does not encrypt blank input. Basically, the result of input `[]` is `[]`. I'm not a crypto expert, but from what I've read the encryptor should add PKCS7 padding...

rust-crypto should consider deferring implementation to other, smaller crates. Give me standalone AES crate, have rust-crypto just glue everything together. rust-crypto should have 100 dependencies, one for each crypto subsystem.

As discussed in #236, having something like this along with the NaCl box primitives will allow significantly easier use of the library, for the "I just want to encrypt/decrypt stuff...