aboutsummaryrefslogtreecommitdiff
path: root/src/crypto/hash.rs
Commit message (Collapse)AuthorAgeFilesLines
* Move docs to this repo and auto buildSteven Fackler2015-02-071-333/+0
|
* Avoid duplicate calls to *_Final when dropping Hasher and HMACGleb Kozyrev2015-01-291-1/+1
| | | | An assertion triggered in finalize() would lead to drop() erroneously redoing the finalization. Set the state to Finalized unconditionally to prevent this.
* Rename crypto::hash::HashType -> TypeGleb Kozyrev2015-01-281-21/+21
| | | | | s/HashType/Type/ to follow the current Rust style. Import Type as HashType in modules where the name might be ambiguous. [breaking change]
* Change Hasher and HMAC APIs closer to std::hash modelGleb Kozyrev2015-01-281-136/+235
| | | | | | | | | | | - Implement Clone and std::io::Writer. - Reduce the API to write() and finish(). Contrary to std::hash, finish() resets the hasher immediately. - Add hmac::hmac() convenience fn. - Replace hash::evpmd() with HashType methods. - Add assertions as a crude check for failed calls into openssl. - Add examples and some tests. [breaking-change]
* Fix for IO changesSteven Fackler2015-01-281-4/+4
|
* Bring ffi definitions closer to the originalsGleb Kozyrev2015-01-211-1/+1
| | | | | Add missing return types and fix imprecise type translations. Repair the fallout in the openssl crate.
* Update to rust masterAlex Crichton2015-01-091-10/+10
|
* Fix deprecation warningsSteven Fackler2015-01-031-1/+2
|
* Updated to master:Valerii Hiora2015-01-031-1/+1
| | | | | | - library stab issues - deriving -> derive - {mod} -> {self}
* Update to rust masterAlex Crichton2014-12-231-1/+1
|
* Update to nightly: explicit Copy traitValerii Hiora2014-12-111-0/+1
|
* Hasher: static contract checking, context reuseGleb Kozyrev2014-11-261-22/+63
| | | | | | | | | | | | - 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().
* Fixed compilation errors related to namedspaced enumsJames Hurst2014-11-171-12/+12
|
* Move AES XTS support to a featureSteven Fackler2014-11-161-1/+1
|
* Hasher::write(): add basic testCody P Schafer2014-11-071-0/+13
|
* crypto/hash: impl Writer for Hasher to allow use of Reader-Writer ↵Cody P Schafer2014-11-071-0/+8
| | | | convenience functions
* Correct init mutexes and locking functionValerii Hiora2014-10-141-0/+2
| | | | | | | | | `libcrypto` uses locks quite intensively even without SSL. So they should be initialized before everything else to function properly in multi-threaded apps in which SSL operations are absent or delayed. Finishes #79
* "final" is now a reserved word, so change occurrences to "finalize".Samuel Fredrickson2014-10-091-2/+2
|
* single `ffi` moduleValerii Hiora2014-09-301-54/+17
|
* Update for rust rfc 52 changesMichael Gehring2014-09-171-1/+1
|
* Fix lints for non snake-case functionsAndrew Dunham2014-09-041-0/+1
|
* Add repr(C) to C structsMichael Gehring2014-08-221-0/+3
|
* Add new HashType RIPEMD160Jeremy Ruten2014-08-041-1/+15
|
* Shift directory structureSteven Fackler2014-08-031-0/+187
|
* Prepare rustcrypto to merge into rust-opensslSteven Fackler2013-12-281-177/+0
|
* update to rust 0.9-pre (a5fa1d9)Erick Tryzelaar2013-12-271-47/+37
|
* Switch over to rustpkgErick Tryzelaar2013-12-181-0/+187