1. 29 Apr, 2013 1 commit
    • Kenny Root's avatar
      Move JSSE to new package · 860d2707
      Kenny Root authored
      To help with shipping the JSSE with apps that want to bundle it, move
      it to a new package so that the tangles in other parts of the library
      can be untangled.
      
      Change-Id: I810b6861388635301e28aee5b9b47b8e6b35b430
      860d2707
  2. 05 Apr, 2013 1 commit
    • Alex Klyubin's avatar
      Make KeyFactory.translateKey for OpenSSL keys a no-op. · 6252963a
      Alex Klyubin authored
      There's no need for the OpenSSL-backed KeyFactory.translateKey to
      create copies of Key instances which are already backed by OpenSSL.
      
      (cherry picked from commit 3fb32505a22a01c95ff82435ac7f4d6da001c11c)
      
      Change-Id: I49322aa2d29e44a06e6bd35aed3aebc0ea70a3f9
      6252963a
  3. 29 Mar, 2013 3 commits
    • Alex Klyubin's avatar
      Disallow KeyFactory.translateKey between public and private · 63f839a6
      Alex Klyubin authored
      This fixes the bug where OpenSSL-backed KeyFactory instances (RSA,
      DSA, EC) could translateKey from PrivateKey to PublicKey and vice
      versa when presented with "opaque" keys whose translation is
      performed via their primary encoded form.
      
      (cherry picked from commit ddee4ef28dcce942e25fd7a24f27239cd74807fa)
      
      Change-Id: Ia24a2591a06ac82c5225a3a9e3069af7a01a0c37
      63f839a6
    • Alex Klyubin's avatar
      Disallow KeyFactory.translateKey between public and private · 724f18f3
      Alex Klyubin authored
      This fixes the bug where OpenSSL-backed KeyFactory instances (RSA,
      DSA, EC) could translateKey from PrivateKey to PublicKey and vice
      versa when presented with "opaque" keys whose translation is
      performed via their primary encoded form.
      
      Change-Id: Ia24a2591a06ac82c5225a3a9e3069af7a01a0c37
      724f18f3
    • Alex Klyubin's avatar
      Make KeyFactory.translateKey for OpenSSL keys a no-op. · 0c1d4557
      Alex Klyubin authored
      There's no need for the OpenSSL-backed KeyFactory.translateKey to
      create copies of Key instances which are already backed by OpenSSL.
      
      Change-Id: I9411d774453251973703ba9de4fd413fac4b2183
      0c1d4557
  4. 26 Mar, 2013 1 commit
    • Alex Klyubin's avatar
      InvalidKeyException for "opaque" keys null getEncoded() · 1d0cdbb1
      Alex Klyubin authored
      This makes OpenSSL-backed KeyFactory instances (RSA, DSA, EC)
      translateKey method throw InvalidKeyException for "opaque" keys whose
      getFormat() returns non-null while getEncoded() returns null.
      Prior to this change a NullPointerException was thrown.
      
      Change-Id: Ie0f3ec27356307338839f4c2b248b0e79578e19b
      1d0cdbb1
  5. 14 Mar, 2013 1 commit
  6. 06 Feb, 2013 1 commit
    • Kenny Root's avatar
      NativeCrypto: reduce strict Class equality check · 3b14e6d0
      Kenny Root authored
      For requested keySpec, we don't necessarily need the strict equality
      check.
      
      Also, remove code that is unreachable: RSAPrivateCrtKeySpec is a child
      of RSAPrivateKeySpec, so there is no need to check whether the keySpec
      is assignable to the CRT spec.
      
      Change-Id: I8070541b015167d9314b83b45bd1410663487865
      3b14e6d0
  7. 01 Feb, 2013 1 commit
    • Kenny Root's avatar
      OpenSSL KeyFactory for DSA and EC · 11b3e702
      Kenny Root authored
      Add KeyFactory for EC. Uncomment the KeyFactory for DSA.
      
      Remove useless template parameters from RSA KeyFactory.
      
      Change-Id: Id7c4d3624719b5088abf239482ba58c7a2557d61
      11b3e702
  8. 22 Mar, 2012 1 commit
  9. 03 Feb, 2012 1 commit
    • Kenny Root's avatar
      Add OpenSSL KeyPairGenerator and KeyFactory · aa48fdb4
      Kenny Root authored
      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
      aa48fdb4