aboutsummaryrefslogtreecommitdiff
path: root/openssl/src/crypto/pkey.rs
Commit message (Collapse)AuthorAgeFilesLines
* Flatten crypto moduleSteven Fackler2016-10-221-193/+0
|
* More error cleanupSteven Fackler2016-10-161-26/+29
| | | | Also allocation free RSA
* Migrate DSA sign/verify to EVP APIsSteven Fackler2016-10-151-0/+12
|
* Fix typoSteven Fackler2016-10-151-1/+1
|
* Support HMAC PKeys and remove hmac moduleSteven Fackler2016-10-151-1/+13
|
* Method renamesSteven Fackler2016-08-101-11/+11
|
* Add PKey::from_rsaSteven Fackler2016-08-071-5/+9
|
* PKey reformSteven Fackler2016-08-071-748/+30
| | | | | This deletes the vast majority of PKey's API, since it was weirdly tied to RSA and super broken.
* Hash reformSteven Fackler2016-08-071-1/+1
| | | | Closes #430
* Refactor BigNumSteven Fackler2016-08-071-5/+6
|
* get_handle -> handleSteven Fackler2016-08-051-5/+5
|
* Fix pkey method safetySteven Fackler2016-08-051-3/+4
|
* Restructure PEM input/output methodsSteven Fackler2016-08-021-82/+32
| | | | | Dealing with byte buffers directly avoids error handling weirdness and we were loading it all into memory before anyway.
* Fix catch_unwind feature and drop feature gateSteven Fackler2016-07-311-10/+3
|
* Merge remote-tracking branch 'origin/master' into breaksSteven Fackler2016-07-311-25/+48
|\
| * FnMut -> FnOnce, update docsJonas Schievink2016-06-261-1/+3
| |
| * Put password callbacks behind a cargo featureJonas Schievink2016-06-261-1/+6
| |
| * Make the callback take a `&mut [c_char]`Jonas Schievink2016-06-261-2/+2
| |
| * Move into utility moduleJonas Schievink2016-06-261-39/+4
| |
| * Try to propagate callback panicsJonas Schievink2016-06-261-6/+21
| |
| * Add PKey::private_key_from_pem_cbJonas Schievink2016-06-261-1/+48
| |
| * RustfmtSteven Fackler2016-05-161-11/+10
| |
| * Clean up RSA signature APISteven Fackler2016-05-161-14/+4
| |
* | Error reformSteven Fackler2016-05-031-16/+21
|/
* copy PKey using DER encode and decodeKevin King2016-04-101-4/+34
| | | | test that fields of cloned private and public keys can be accessed
* add EVP_PKEY_copy_parameters to FFIKevin King2016-04-061-7/+15
| | | | | | copy EVP_PKEY params in PKey::clone test that PKey::clone creates a copy
* added public key material to the constructorBenjamin Fry2016-02-281-3/+27
|
* review fixes, keep raw RSA initiallization privateBenjamin Fry2016-02-231-7/+4
|
* adding functionality to directly get and set RSA key materialBenjamin Fry2016-02-171-0/+24
|
* Revert "Revert "impl Clone for PKey and X509 by using their 'references' ↵Steven Fackler2016-01-311-0/+14
| | | | member""
* Fix PKey RSA constructorsSteven Fackler2016-01-301-22/+7
| | | | | | | | `set1` functions bump the object's refcount so we were previously leaking the RSA object. Split the decode from PEM part out to a method on RSA and use that in the PKey constructors. Also make RSA a pointer and actually free it.
* Revert "impl Clone for PKey and X509 by using their 'references' member"Steven Fackler2016-01-281-14/+0
|
* Merge branch 'master' of https://github.com/sfackler/rust-opensslDaniel Albert2016-01-201-0/+85
|\
| * crypto/pkey: impl Clone for PKey using openssl's ref countingCody P Schafer2016-01-191-0/+14
| |
| * Merge pull request #328 from Cyberunner23/PemRSASteven Fackler2016-01-091-0/+68
| |\ | | | | | | Add support for RSA PEM files.
| | * Added tests for private_rsa_key_from_pem() and public_rsa_key_from_pem()Cyberunner232016-01-091-0/+20
| | |
| | * Added private_rsa_key_from_pem and public_rsa_key_from_pem.Cyberunner232016-01-051-0/+48
| | |
| * | Mark PKey as `Send` and `Sync`Will Tange2016-01-071-0/+3
| |/ | | | | | | | | Provided that the locking function is set, the underlying `ffi::EVP_KEY` type should be safe to use across threads.
* / Add RSA structsDaniel Albert2016-01-011-2/+2
|/
* RustfmtSteven Fackler2015-12-151-115/+144
|
* Fix a leak when using `EVP_PKEY_get1_RSA`.Overmind JIANG2015-11-181-0/+1
| | | | | | `EVP_PKEY_get1_RSA` returns a RSA structure with its reference count increased by 1 and therefore we need to call `RSA_free` after finishing using that value.
* Provide public_decrypt, private_encrypt for PKEYThom May2015-10-281-12/+115
|
* Add public key PEM read function.Nathan Lilienthal2015-10-011-0/+26
|
* Merge pull request #270 from mvdnes/crypto_segvSteven Fackler2015-09-111-7/+67
|\ | | | | Check if public/private RSA key is properly loaded
| * Fix one call to RSA_size found by testsMathijs van de Nes2015-09-111-1/+1
| |
| * Add tests to ensure a panic occurs instead of segvMathijs van de Nes2015-09-111-0/+32
| |
| * Check rsa.is_null() before passing it to RSA_sizeMathijs van de Nes2015-09-101-1/+22
| | | | | | | | RSA_size will cause an segmentation fault if it is null
| * Check _fromstr function for successMathijs van de Nes2015-09-101-6/+13
| |
* | Make the docs say that load_pub/save_pub methods take DER bytesAlex Gaynor2015-09-091-2/+2
|/
* Add function to write RSA public key as PEMAndrew Dunham2015-07-231-0/+32
|