Age | Commit message (Collapse) | Author | |
---|---|---|---|
2021-01-01 | Use crate in imports in the openssl crate | Jonas Platte | |
This was mostly automated using `cargo fix --edition`, except imports of openssl_sys (renamed to ffi) were converted to crate::ffi, which was reverted. The same thing is not done for the openssl-sys crate because this breaks ctest (used in systest to verify the -sys crate), see https://github.com/gnzlbg/ctest/issues/70 | |||
2020-11-29 | Merge pull request #1345 from stbuehler/from-const-ptr | Steven Fackler | |
Add and use ForeignTypeRefExt::from_const_ptr | |||
2020-10-10 | Fix a typo | Rodolphe Breard | |
2020-09-27 | Add and use ForeignTypeRefExt::from_const_ptr | Stefan Bühler | |
1. `X::from_ptr(p as *mut _)` is dangerous, as it not only casts `*const X::CType` to `*mut X::CType`, but any `*const U` to `*mut X::CType`. Add and use a extension trait to provide `from_const_ptr`. 2. Often null pointers are returned as `Option<...>`; refactor the checks into `from_const_ptr_opt` for refs and `from_ptr_opt` for owned data. 3. `assert!(!p.is_null())` is easy to mistype as `assert!(p.is_null());`. Use `X::from(_const)?ptr_opt(...).expect("...")` instead. | |||
2020-06-05 | Add PEM/DER serialization for EC public key | Leo | |
2020-05-24 | Run clippy | Steven Fackler | |
2019-11-14 | Format code using 'cargo fmt' | Atul Bhosale | |
2019-11-11 | Add #[cfg(ossl110)] | Lukas Lihotzki | |
2019-11-11 | Add EC_GROUP_order_bits | Lukas Lihotzki | |
2019-06-19 | Expose EC_POINT_dup as EcPoint::to_owned | Mike Belopuhov | |
2019-06-14 | Expose EC_GROUP_get_cofactor as EcGroup::cofactor | Mike Belopuhov | |
2019-06-13 | Expose EC_GROUP_get0_generator as EcGroup::generator | Mike Belopuhov | |
2019-06-10 | Add Debug impl for EcKey | Leo | |
2019-03-19 | Expose EC_GROUP_get_curve_name() | Nathaniel McCallum | |
This gives us the ability to get the Nid from an EcGroupRef. | |||
2019-01-04 | Drop data_encoding dev dependency | Steven Fackler | |
2018-05-19 | Support min/max version in LibreSSL | Steven Fackler | |
Their implementations of the accessors don't behave expected with no bounds, so we ignore those bits of the tests. | |||
2018-03-13 | Change function name to be similar to RSA one | Rohit Aggarwal | |
2018-03-09 | Added a function to create a EC<Key> from its parts | Rohit Aggarwal | |
2018-01-06 | Rename key serialization/deserialization methods | Steven Fackler | |
Also document their specific formats. Closes #502 | |||
2018-01-01 | Misc cleanup | Steven Fackler | |
2017-12-30 | Parameterize keys over what they contain | Steven Fackler | |
Closes #790 | |||
2017-12-25 | Remove deprecated APIs | Steven Fackler | |
2017-12-25 | Move to associated consts | Steven Fackler | |
2017-12-25 | Upgrade bitflags to 1.0 | Steven Fackler | |
Closes #756 | |||
2017-11-10 | Added a macro that wraps foreign type, and impl Send and Sync for both, | Paul Florence | |
the borrowed type and the owned one. Replaced all invocation of `foreign_type` by `foreign_type_and_impl_send_sync`. | |||
2017-11-04 | Merge pull request #761 from AndyGauge/doc-ec | Steven Fackler | |
Doc ec module | |||
2017-11-04 | Update data-encoding major version | Julien Cretin | |
2017-10-24 | Update documentation for EC module | Andy Gauge | |
2017-10-11 | Began EC documenation | Andy Gauge | |
2017-10-03 | Convert try! usage to ? | johnthagen | |
2017-08-22 | Rename function, removing `get_` | Bradley Beddoes | |
Fix per PR comment, should have been like this from the start :). | |||
2017-08-21 | Add ability to get affine coordinates from EcPoint | Bradley Beddoes | |
The initial usecase here is creating JWK representations as defined within RFC 7517 from an EcKey created via a PEM source. | |||
2017-08-09 | Refine sig for set_public_key_affine_coordinates | Bradley Beddoes | |
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. | |||
2017-08-09 | Fix EC_KEY_set_public_key_affine_coordinates | Bradley Beddoes | |
Previous definition incorrectly used `const` pointers but the underpinning library definition (unfortunately) does not. | |||
2017-08-09 | Set the private key within EcKeyBuilder | Bradley Beddoes | |
The initial usecase here is creating EcKey instances from JWK representations, that hold private keys, as defined within RFC 7517. | |||
2017-08-09 | Support for EcKey creation from affine coordinates | Bradley Beddoes | |
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. | |||
2017-07-15 | Rustfmt | Steven Fackler | |
2017-04-11 | (issues-600) Avoid compiling ec2m code against no-ec2m openssl | Andrew Roetker | |
This commit avoids defining code that leads to undefined references when compiling against an openssl built with no-ec2m. | |||
2017-04-10 | Add new EC/PKEY methods to permit deriving shared secrets. | Andrew Osmond | |
2017-02-03 | Switch to foreign_types | Steven Fackler | |
2017-01-22 | Support EC_GROUP_set_asn1_flag | Steven Fackler | |
Closes #561 | |||
2017-01-03 | Clean up EcKey example a bit | Steven Fackler | |
2016-12-31 | add EcKey creation from EcPoint, public_key | Benjamin Fry | |
2016-11-16 | Return Option from group | Steven Fackler | |
2016-11-16 | Remove EcGroup constructors | Steven Fackler | |
You also need a generator and possibly other stuff. Let's hold off on construction until someone has a concrete requirement for them. | |||
2016-11-15 | Add a test for mul_generator | Steven Fackler | |
2016-11-15 | Turns out yet another variant of EC_POINT_mul is allowed! | Steven Fackler | |
2016-11-14 | Rename ec_key to ec | Steven Fackler | |