History log of /libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/OpenSSLRSAPrivateKey.java
Revision Date Author Comments
c44b3f5d857d0d3f4d3668de905cdac5080ede3b 01-Sep-2012 Kenny Root <kroot@google.com> Better OpenSSL key comparison

Use native code to compare OpenSSL keys instead of converting them to
Java BigIntegers first.

Change-Id: If795c9c26e41174755cdab34ff70e01c7487c9bd
796b0d2f4508e3933e53df2d372090c8634164ee 21-Aug-2012 Kenny Root <kroot@google.com> Remember key aliases for OpenSSLKeys from ENGINEs

Since it's not easy (or sometimes impossible) to retrieve key IDs for
keys loaded from an ENGINE, remember them when we create them.

(cherry-picked from 86bdaf9b40263efae243d685d449e1ae30b0b161)

Change-Id: I3920f56214d9eade87d51d30b024f5aeda9e8344
86bdaf9b40263efae243d685d449e1ae30b0b161 21-Aug-2012 Kenny Root <kroot@google.com> Remember key aliases for OpenSSLKeys from ENGINEs

Since it's not easy (or sometimes impossible) to retrieve key IDs for
keys loaded from an ENGINE, remember them when we create them.

Change-Id: I643b23668eae4303af04dc59899a6430e8d3a799
84818197ed60f59a86ba8d9274e1639d222f4040 15-Aug-2012 Kenny Root <kroot@google.com> Do better comparisons for ENGINE-based keys

ENGINE-based keys need only be compared by their modulus in actuality,
because given a good random number generator each modulus should be
unique.

Change-Id: Iea1f19126c5ce306d63b3a1bcb05a43139a86846
908975092f7ac7b7562f242c5fd99fbf228acf0f 02-May-2012 Selim Gurun <sgurun@google.com> Provide key context

Bug: 6249185

Make the key context available.

Change-Id: I51967e2a164b3f83d5d5096add7199c3a121da06
beac31ef5949d994a7096f20f12fcf929b06884d 26-Mar-2012 Kenny Root <kroot@google.com> More support for ENGINE-based keys

Tweak some of the parameters for RSA and DSA keys to allow ENGINE-based
keys to exist without needing to define private key material.

Change-Id: Ide2884d6d97636ae2178f8e789eaeec1babd9650
5b7f91c1e6e208187cef57ab8a5de0a7f35e817f 22-Mar-2012 Brian Carlstrom <bdc@google.com> Split OpenSSLRSAPrivateCrtKey from OpenSSLRSAPrivateKey

Change-Id: I6a58044162758b3b74db5d17e9044f97dbe53bae
41e34229c07e8d05090560ff80558fa222623769 09-Mar-2012 Kenny Root <kroot@google.com> Add support for OpenSSL engines

This allows OpenSSL ENGINE to be used for RSA and DSA private key
operations.

Also add in support for directly passing an OpenSSLKey to the
OpenSSLSocketImpl in case we are using ENGINEs.

Change-Id: Ia31735109052a13e421900b69ba5de13bbce0f6f
d036721c2ecd146acef9f36408c7a397dd0a0785 03-Feb-2012 Kenny Root <kroot@google.com> OpenSSL keys add hashCode, equals, and toString

Change-Id: I8d0d8eac1e5a4ee455de1ed51bc8b610df1f45d7
91bb5fbe55b854df891ff7720e30d42081dbcd58 03-Feb-2012 Kenny Root <kroot@google.com> Throw exceptions on wrong key type in Signature

Our engine can handle both RSA and DSA, but we need to throw an error if
the wrong key type is supplied after we've initialized to emulate other
providers.

Also, apparently OpenSSL is really flexible, because calling
EVP_SignInit had the same effect as EVP_VerifyInit. Change this to be
correct even though the underlying implementation in OpenSSL doesn't
care.

Change-Id: If9223d17909fcf86437b9669c204fc544e6d12ff
746a236e2be5dee62c482e27f4c682496d071d8b 01-Feb-2012 Kenny Root <kroot@google.com> Add OpenSSL KeyPairGenerator and KeyFactory

Refactor the way OpenSSL keys are handled so we can generate OpenSSL
keys with the KeyPairGenerator and KeyFactory and pass them around
without keeping the context in the OpenSSLSignature where it originated.

Change-Id: Ib66bd1914e241a240cd97b1ea37e8526998107d9