aboutsummaryrefslogtreecommitdiff
path: root/src/crypto
Commit message (Collapse)AuthorAgeFilesLines
* Updated for language changes to macros.Aaron Weiss2014-12-191-1/+1
|
* Update to nightly: explicit Copy traitValerii Hiora2014-12-113-1/+6
|
* Add the openssl function prototype 'HMAC_CTX_cleanup'.Ummon2014-12-101-0/+8
|
* 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().
* Fix test buildSteven Fackler2014-11-193-10/+10
|
* Fixed compilation errors related to namedspaced enumsJames Hurst2014-11-174-77/+77
|
* Move AES XTS support to a featureSteven Fackler2014-11-162-1/+8
|
* Add XTS-AES modeCorey Ford2014-11-141-0/+16
|
* Merge pull request #89 from pyrho/aes-256-cbc-decrypt-testSteven Fackler2014-11-101-0/+34
|\ | | | | Aes 256 cbc decrypt test
| * Replaced vector of bytes with bytes string literal for expected output of ↵pyrho2014-10-281-7/+2
| | | | | | | | AES_256_CBC deciphering unit test
| * AES 256 CBC unit testpyrho2014-10-281-0/+39
| |
* | 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
* | fail! -> panic!Michael Gehring2014-10-304-4/+4
|/
* Cert loading from PEM & restructuring Valerii Hiora2014-10-151-1/+1
| | | | | | - Added cert loading - Extracted X509 tests
* Correct init mutexes and locking functionValerii Hiora2014-10-146-0/+11
| | | | | | | | | `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-093-12/+12
|
* Add bindings to CRYPTO_memcmpAlex Crichton2014-10-012-0/+40
| | | | This should help other projects use a constant-time memory comparison.
* Unification and explicity in FFI type declsValerii Hiora2014-09-301-3/+3
|
* single `ffi` moduleValerii Hiora2014-09-306-222/+83
|
* Certificate/pkey generation & PEM exportValerii Hiora2014-09-261-1/+28
| | | Required quite a lot of refactoring
* Fix deprecation warningsMichael Gehring2014-09-232-29/+34
|
* Update for rust rfc 52 changesMichael Gehring2014-09-172-2/+2
|
* Switch to the more sane RSA PUBKEY functionMathijs van de Nes2014-09-121-4/+4
| | | | | | | For differences, see: http://openssl.6102.n7.nabble.com/difference-between-i2d-PUBKEY-and-i2d-PublicKey-td43869.html This will break loading of *public* keys generated before this commit
* Switch PKey load/save functions to RSA specificMathijs van de Nes2014-09-121-15/+17
|
* Fix lints for non snake-case functionsAndrew Dunham2014-09-042-1/+2
|
* Fix the ambiguous integer literal errorEunchong Yu2014-08-271-1/+1
| | | | | | | | | This commit fixes this: > src/crypto/symm.rs:95:25: 95:52 error: cannot determine a type for > this expression: cannot determine the type of this integer; add a > suffix to specify the type explicitly [E0101] > src/crypto/symm.rs:95 let v = if padding { 1 } else { 0 } as c_int;
* Add repr(C) to C structsMichael Gehring2014-08-222-0/+5
|
* Add new HashType RIPEMD160Jeremy Ruten2014-08-042-8/+23
|
* Shift directory structureSteven Fackler2014-08-037-0/+1324
|
* Prepare rustcrypto to merge into rust-opensslSteven Fackler2013-12-288-1226/+0
|
* update to rust 0.9-pre (a5fa1d9)Erick Tryzelaar2013-12-278-366/+279
|
* Switch over to rustpkgErick Tryzelaar2013-12-188-0/+1313