aboutsummaryrefslogtreecommitdiff
path: root/openssl/src/pkey.rs
Commit message (Collapse)AuthorAgeFilesLines
* Added a macro that wraps foreign type, and impl Send and Sync for both,Paul Florence2017-11-101-8/+2
| | | | | the borrowed type and the owned one. Replaced all invocation of `foreign_type` by `foreign_type_and_impl_send_sync`.
* Convert try! usage to ?johnthagen2017-10-031-35/+35
|
* RustfmtSteven Fackler2017-07-151-38/+82
|
* Add PKey::private_key_from_derSteven Fackler2017-06-231-0/+7
|
* Support public key decode from DERSteven Fackler2017-05-061-0/+7
| | | | Closes #629
* Add new EC/PKEY methods to permit deriving shared secrets.Andrew Osmond2017-04-101-7/+58
|
* Support PKCS#8 private key deserializationSteven Fackler2017-02-141-1/+62
| | | | Closes #581
* Switch to foreign_typesSteven Fackler2017-02-031-4/+10
|
* Fixed constant names from openssl/rsa.hBrian Chin2017-01-311-1/+1
| | | | | | Fixed PKeyCtxRef method that didn't need to be mutable. Added non-mutable accessors for PKeyCtxRef for Signer and Verifier.
* Adding suggestions from review.Brian Chin2017-01-301-1/+18
|
* Testing first version that works with signer.Brian Chin2017-01-301-0/+6
|
* Tweak layout a little bitSteven Fackler2017-01-031-1/+3
|
* Pointer from PKey docs to sign module.Philipp Keck2017-01-031-0/+1
| | | | | | | Could even add a link, but I don't know how. Someone who wants to use OpenSSL to compute an HMAC won't find a "hmac" module and won't find HMACs in the "hash" module. Unless the person knows that HMACs are used to "sign" messages (the usual term in this context would be "authenticate"), they will probably use the search function and look for "hmac", then they'll find this method. So it's helpful to include a pointer to the right API to use. Without such a pointer, the API user is left with a seemingly useless Pkey instance. Similar pointers could be helpful from the other creator methods in this file. And/or from the top-level documentation or the hash documentation towards the sign module. Another idea would be a trivial `hmac` module with a few helper functions that internally just use Pkey. If many users who just want a simple HMAC value can use that API, there are fewer dependencies on `Pkey` and `sign`, which is probably a good thing.
* Rename ec_key to ecSteven Fackler2016-11-141-2/+2
|
* Rename new_by_curve_name to from_curve_nameSteven Fackler2016-11-131-1/+1
|
* Remove some stray manual implsSteven Fackler2016-11-131-10/+2
|
* Macroise from_pemSteven Fackler2016-11-131-13/+1
|
* Macroise to_derSteven Fackler2016-11-131-18/+3
|
* Support serialization of encrypted private keysSteven Fackler2016-11-131-1/+11
| | | | | Switch to PEM_write_bio_PKCS8PrivateKey since the other function outputs nonstandard PEM when encrypting.
* Macro-implement private_key_to_pemSteven Fackler2016-11-131-16/+1
|
* Some serialization support for EcKeySteven Fackler2016-11-131-19/+4
|
* Drop bits to u32Steven Fackler2016-11-121-2/+2
|
* Add PKey::bitsSteven Fackler2016-11-121-0/+9
|
* Consistently support both PEM and DER encodingsSteven Fackler2016-11-111-5/+14
| | | | Closes #500
* Add EcKey <-> PKey conversionsSteven Fackler2016-11-111-1/+31
| | | | Closes #499
* PKey <-> DH conversionsSteven Fackler2016-11-111-4/+34
| | | | Closes #498
* Add PKey::dsaSteven Fackler2016-11-111-5/+33
| | | | Closes #501
* Remove set_rsaSteven Fackler2016-11-051-11/+1
| | | | PKey is reference counted so allowing mutation is unsound
* Get rid of RefSteven Fackler2016-11-041-6/+6
| | | | | There's unfortunately a rustdoc bug that causes all methods implemented for any Ref<T> to be inlined in the deref methods section :(
* Add method to encode a public key as a DER blobLionel Flandrin2016-11-011-1/+10
|
* Update RsaSteven Fackler2016-10-311-2/+2
|
* Update PKeySteven Fackler2016-10-311-37/+4
|
* Add RsaRefSteven Fackler2016-10-301-2/+2
|
* RustfmtSteven Fackler2016-10-301-3/+1
|
* Add PKeyRefSteven Fackler2016-10-291-44/+65
|
* Camel case RsaSteven Fackler2016-10-221-5/+5
|
* Camel case DsaSteven Fackler2016-10-221-2/+2
|
* Flatten crypto moduleSteven Fackler2016-10-221-0/+193