aboutsummaryrefslogtreecommitdiff
path: root/openssl/src/pkey.rs
Commit message (Collapse)AuthorAgeFilesLines
* Return `PKey<Private>` from `private_key_from_der`Bastian Köcher2018-04-041-1/+1
|
* Remove a last couple featuresSteven Fackler2018-03-191-5/+3
|
* Make it possible to use cmacFlakebi2018-03-191-0/+62
| | | | | | | | This adds Signer::new_without_digest to create Signers which don't have a digest (like cmac, which is based on aes). As openssl supports cmac since version 1.1.0, the functions are behind the ossl110 feature. This allows building CMAC/OMAC1 and the EAX AEAD on top of this library.
* Rename Oid to IdSteven Fackler2018-03-111-19/+19
|
* Switches to new type wrapper for RsaPssSaltlenBastian Köcher2018-03-101-2/+1
|
* Switches to newtype wrapper for OidBastian Köcher2018-03-081-22/+27
|
* Adds `PKeyRef::get_id` to get the OID of a keyBastian Köcher2018-03-071-0/+33
|
* Add HMAC to Pkey docsAnsley Peduru2018-01-241-1/+3
|
* Print the public key in PKey exampleAnsley Peduru2018-01-231-1/+5
|
* Fix import in pkey docsAnsley Peduru2018-01-071-2/+2
|
* Missing colonAnsley Peduru2018-01-071-1/+1
|
* Add Pkey docsAnsley Peduru2018-01-071-0/+75
|
* Rename key serialization/deserialization methodsSteven Fackler2018-01-061-11/+117
| | | | | | Also document their specific formats. Closes #502
* Parameterize keys over what they containSteven Fackler2017-12-301-118/+90
| | | | Closes #790
* Remove deprecated APIsSteven Fackler2017-12-251-21/+2
|
* Upgrade bitflags to 1.0Steven Fackler2017-12-251-12/+8
| | | | Closes #756
* 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
|