commit | 62ea4a5c3cf5da5c64e881e6986e5753304fe8be | [log] [tgz] |
---|---|---|
author | Kenny Root <kroot@google.com> | Wed Sep 25 09:59:10 2013 -0700 |
committer | Kenny Root <kroot@google.com> | Wed Sep 25 09:59:10 2013 -0700 |
tree | df6b5b3143eefcf458348fedbe12ed8148b8ac69 | |
parent | abc0bf084beea3251c042b28576c8f398749c80b [diff] |
Read algorithm OID directly from PKCS#8 container The PKCS#8 PrivateKeyInfo structure has the algorithm OID encoded right before the actual key octet stream is encoded. Use Bouncycastle to read the OID for creation with the key factory. This aids in the creation of custom key types that are backed by hardware devices (e.g., HSMs) and have their own assigned OIDs. Change-Id: If5d8fe07bc157e9bb5a3fb5f99091e924143105f