aboutsummaryrefslogtreecommitdiff
path: root/openssl/src/ec.rs
Commit message (Collapse)AuthorAgeFilesLines
* Support min/max version in LibreSSLSteven Fackler2018-05-191-7/+9
| | | | | Their implementations of the accessors don't behave expected with no bounds, so we ignore those bits of the tests.
* Change function name to be similar to RSA oneRohit Aggarwal2018-03-131-3/+3
|
* Added a function to create a EC<Key> from its partsRohit Aggarwal2018-03-091-0/+39
|
* Rename key serialization/deserialization methodsSteven Fackler2018-01-061-4/+66
| | | | | | Also document their specific formats. Closes #502
* Misc cleanupSteven Fackler2018-01-011-4/+2
|
* Parameterize keys over what they containSteven Fackler2017-12-301-168/+118
| | | | Closes #790
* Remove deprecated APIsSteven Fackler2017-12-251-5/+0
|
* Move to associated constsSteven Fackler2017-12-251-41/+44
|
* Upgrade bitflags to 1.0Steven Fackler2017-12-251-33/+32
| | | | Closes #756
* Added a macro that wraps foreign type, and impl Send and Sync for both,Paul Florence2017-11-101-4/+4
| | | | | the borrowed type and the owned one. Replaced all invocation of `foreign_type` by `foreign_type_and_impl_send_sync`.
* Merge pull request #761 from AndyGauge/doc-ecSteven Fackler2017-11-041-4/+212
|\ | | | | Doc ec module
| * Update documentation for EC moduleAndy Gauge2017-10-241-6/+204
| |
| * Began EC documenationAndy Gauge2017-10-111-0/+10
| |
* | Update data-encoding major versionJulien Cretin2017-11-041-8/+10
|/
* Convert try! usage to ?johnthagen2017-10-031-11/+11
|
* Rename function, removing `get_`Bradley Beddoes2017-08-221-3/+3
| | | | Fix per PR comment, should have been like this from the start :).
* Add ability to get affine coordinates from EcPointBradley Beddoes2017-08-211-21/+93
| | | | | The initial usecase here is creating JWK representations as defined within RFC 7517 from an EcKey created via a PEM source.
* Refine sig for set_public_key_affine_coordinatesBradley Beddoes2017-08-091-5/+5
| | | | | | | | | This functions signature was originally defined to require mutable references for `x` / `y` as the underpinning OpenSSL C API was not `const`. However the actual OpenSSL implementation makes no changes. This being the case we've chosen to reflect non mutability at the Rust level.
* Fix EC_KEY_set_public_key_affine_coordinatesBradley Beddoes2017-08-091-5/+5
| | | | | Previous definition incorrectly used `const` pointers but the underpinning library definition (unfortunately) does not.
* Set the private key within EcKeyBuilderBradley Beddoes2017-08-091-0/+25
| | | | | The initial usecase here is creating EcKey instances from JWK representations, that hold private keys, as defined within RFC 7517.
* Support for EcKey creation from affine coordinatesBradley Beddoes2017-08-091-1/+35
| | | | | | | | | Sets the public key for an EcKey based on its affine co-ordinates, i.e. it constructs an EC_POINT object based on the supplied x and y values and sets the public key to be this EC_POINT. The initial usecase here is creating EcKey instances from JWK representations as defined within RFC 7517.
* RustfmtSteven Fackler2017-07-151-131/+177
|
* (issues-600) Avoid compiling ec2m code against no-ec2m opensslAndrew Roetker2017-04-111-0/+1
| | | | | This commit avoids defining code that leads to undefined references when compiling against an openssl built with no-ec2m.
* Add new EC/PKEY methods to permit deriving shared secrets.Andrew Osmond2017-04-101-0/+11
|
* Switch to foreign_typesSteven Fackler2017-02-031-5/+30
|
* Support EC_GROUP_set_asn1_flagSteven Fackler2017-01-221-13/+71
| | | | Closes #561
* Clean up EcKey example a bitSteven Fackler2017-01-031-8/+6
|
* add EcKey creation from EcPoint, public_keyBenjamin Fry2016-12-311-0/+47
|
* Return Option from groupSteven Fackler2016-11-161-3/+6
|
* Remove EcGroup constructorsSteven Fackler2016-11-161-36/+1
| | | | | You also need a generator and possibly other stuff. Let's hold off on construction until someone has a concrete requirement for them.
* Add a test for mul_generatorSteven Fackler2016-11-151-0/+10
|
* Turns out yet another variant of EC_POINT_mul is allowed!Steven Fackler2016-11-151-4/+21
|
* Rename ec_key to ecSteven Fackler2016-11-141-0/+361