boring2/src/crypto
Gleb Kozyrev 5fafe4fc60 Hasher: static contract checking, context reuse
- Store EVP_MD_CTX in a separate struct.
- Add with_context() constructor that uses an existing context.
- Switch to EVP_Digest(Init|Final)_ex for efficient context reuse.
- Make update() borrow &mut self.
- Make finalize() consume self. Add finalize_reuse() that also returns the
context which can be passed to from_context() constructor for reuse.

These changes let the type system prevent illegal calls to update() and
finalize().
2014-11-26 21:38:06 +02:00
..
hash.rs Hasher: static contract checking, context reuse 2014-11-26 21:38:06 +02:00
hmac.rs Fix test build 2014-11-19 12:36:32 -08:00
memcmp.rs Fix test build 2014-11-19 12:36:32 -08:00
mod.rs Add bindings to CRYPTO_memcmp 2014-10-01 13:28:56 -07:00
pkcs5.rs fail! -> panic! 2014-10-30 09:58:22 +01:00
pkey.rs Fixed compilation errors related to namedspaced enums 2014-11-17 19:16:51 -05:00
rand.rs fail! -> panic! 2014-10-30 09:58:22 +01:00
symm.rs Fix test build 2014-11-19 12:36:32 -08:00