commit | 28a47ccf41ba39f227f0b075dd31cde42b7a5f49 | [log] [tgz] |
---|---|---|
author | Alex Klyubin <klyubin@google.com> | Wed Mar 20 09:10:25 2013 -0700 |
committer | Kenny Root <kroot@google.com> | Fri Mar 29 14:45:33 2013 -0700 |
tree | 502eb0829d1a18992f93b7a219ed721f92df8353 | |
parent | 0fa4d2c52c874ac710e5195978ec0b833c5050ae [diff] |
Disallow KeyFactory.translateKey between public and private 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