boring2/openssl-sys
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
..
src Hasher: static contract checking, context reuse 2014-11-26 21:38:06 +02:00
Cargo.toml Bump to 0.1.1 2014-11-26 08:49:50 -08:00
LICENSE-MIT New build system 2014-11-13 15:17:00 +02:00