aboutsummaryrefslogtreecommitdiff
path: root/openssl/src/crypto/rsa.rs
Commit message (Collapse)AuthorAgeFilesLines
* Flatten crypto moduleSteven Fackler2016-10-221-487/+0
|
* Update BigNumRefSteven Fackler2016-10-211-5/+5
|
* Finish BN overhaulSteven Fackler2016-10-161-1/+1
|
* More error cleanupSteven Fackler2016-10-161-126/+135
| | | | Also allocation free RSA
* De-enumify PaddingSteven Fackler2016-10-151-23/+23
|
* Remove old RSA sign and verify methodsSteven Fackler2016-10-151-86/+0
|
* Add support for OpenSSL 1.1.0Alex Crichton2016-10-121-42/+117
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit is relatively major refactoring of the `openssl-sys` crate as well as the `openssl` crate itself. The end goal here was to support OpenSSL 1.1.0, and lots of other various tweaks happened along the way. The major new features are: * OpenSSL 1.1.0 is supported * OpenSSL 0.9.8 is no longer supported (aka all OSX users by default) * All FFI bindings are verified with the `ctest` crate (same way as the `libc` crate) * CI matrixes are vastly expanded to include 32/64 of all platforms, more OpenSSL version coverage, as well as ARM coverage on Linux * The `c_helpers` module is completely removed along with the `gcc` dependency. * The `openssl-sys` build script was completely rewritten * Now uses `OPENSSL_DIR` to find the installation, not include/lib env vars. * Better error messages for mismatched versions. * Better error messages for failing to find OpenSSL on a platform (more can be done here) * Probing of OpenSSL build-time configuration to inform the API of the `*-sys` crate. * Many Cargo features have been removed as they're now enabled by default. As this is a breaking change to both the `openssl` and `openssl-sys` crates this will necessitate a major version bump of both. There's still a few more API questions remaining but let's hash that out on a PR! Closes #452
* Rename NoPadding to NoneSteven Fackler2016-10-071-5/+5
|
* Rename EncryptionPadding to PaddingSteven Fackler2016-10-071-17/+17
|
* Removed max_size; removed all encrypt/decrypt methods except private/public ↵Andrei Oprisan2016-10-071-69/+26
| | | | encrypt/decrypt which take the padding
* added try_ssl_size, which handles -1 as error and returns the value ↵Andrei Oprisan2016-10-051-0/+194
| | | | | | | | otherwise; added RSA private_decrypt and public encrypt lift_ssl_size Added public/private encrypt/decrypt to RSA from the original commit + tests; added try_ssl_returns_size macro to check for -1 in case of SSL functions which return size
* Make sure private component exists when signingSteven Fackler2016-09-291-0/+1
| | | | Closes #457
* Method renamesSteven Fackler2016-08-101-6/+6
|
* More API cleanupSteven Fackler2016-08-101-10/+21
|
* Asn1 and Bignum renamesSteven Fackler2016-08-101-6/+6
|
* Clean up RSA and DSA accessorsSteven Fackler2016-08-081-36/+46
|
* Fix build on 1.9Steven Fackler2016-08-071-2/+2
|
* Add RSA::generateSteven Fackler2016-08-071-13/+27
|
* Fix RSA::verifySteven Fackler2016-08-071-17/+14
| | | | It never returns -1 - all errors are indicated by 0
* Hash reformSteven Fackler2016-08-071-5/+5
| | | | Closes #430
* Refactor BigNumSteven Fackler2016-08-071-22/+28
|
* get_handle -> handleSteven Fackler2016-08-051-5/+5
|
* Restructure PEM input/output methodsSteven Fackler2016-08-021-38/+20
| | | | | Dealing with byte buffers directly avoids error handling weirdness and we were loading it all into memory before anyway.
* Fix weird inference issue on 1.9Steven Fackler2016-07-311-6/+8
|
* Fix catch_unwind feature and drop feature gateSteven Fackler2016-07-311-11/+3
|
* Merge remote-tracking branch 'origin/master' into breaksSteven Fackler2016-07-311-9/+211
|\
| * improve error handling in rsaBen Batha2016-07-291-28/+14
| |
| * FnMut -> FnOnce, update docsJonas Schievink2016-06-261-1/+3
| |
| * Put the test behind the catch_unwind featureJonas Schievink2016-06-261-1/+2
| | | | | | | | And fix an unused variable warning
| * Add an RSA key decryption testJonas Schievink2016-06-261-0/+18
| |
| * 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
| |
| * Add RSA::private_key_from_pem_cbJonas Schievink2016-06-261-1/+22
| |
| * RustfmtSteven Fackler2016-05-161-105/+105
| |
| * Clean up RSA signature APISteven Fackler2016-05-161-9/+10
| |
| * add rsa signature testsChris Dawes2016-05-051-1/+108
| |
| * add missing NIDs and use Nid as input to signingChris Dawes2016-05-041-22/+5
| |
| * take enum instead of ints from openssl header fileChris Dawes2016-05-031-6/+22
| |
| * add constructor for private keys from bignumsChris Dawes2016-05-031-0/+52
| |
* | Error reformSteven Fackler2016-05-031-11/+11
|/
* making from_raw() unsafeBenjamin Fry2016-03-051-1/+2
|
* added public key material to the constructorBenjamin Fry2016-02-281-16/+4
|
* review fixes, keep raw RSA initiallization privateBenjamin Fry2016-02-231-1/+5
|
* adding functionality to directly get and set RSA key materialBenjamin Fry2016-02-171-1/+36
|
* Fix PKey RSA constructorsSteven Fackler2016-01-301-9/+55
| | | | | | | | `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.
* Remove unwraps from rsa accessorsSteven Fackler2016-01-221-10/+11
|
* Fix up RSA integrationDaniel Albert2016-01-201-1/+1
|
* Fix incorrect unsafe declarationDaniel Albert2016-01-121-10/+21
|
* Adhere to rust conventionsDaniel Albert2016-01-121-10/+6
|
* Add public interface to access BigNums from RSA keysDaniel Albert2016-01-011-0/+39