diff options
author | Alex Klyubin <klyubin@google.com> | 2015-05-13 12:30:19 -0700 |
---|---|---|
committer | Alex Klyubin <klyubin@google.com> | 2015-05-13 12:35:15 -0700 |
commit | cbdd377db84d58dff31a380e85fdd94a27d863c6 (patch) | |
tree | 6c47679638c0caac460815d929eb6dbb8fe70e93 /keystore/java/android/security/KeyStoreParameter.java | |
parent | 55e603ee9de06125751292c84f1b25fb9a78d4e4 (diff) |
Ensure key algorithm name of HMAC keys is preserved.
When Android KeyStore loads an HMAC key, it needs to compose the JCA
key algorithm name (e.g., HmacSHA256) based on the digests the key is
authorized for. A key can be authorized for multiple digests. Thus,
the approach is to use the first one for constructing the JCA key
algorithm name.
This CL ensures that when importing HMAC keys the first KM_TAG_DIGEST
tag is set to the digest of the JCA key algorithm name.
Bug: 18088752
Change-Id: I911ca7427b249ee823d06e988687af6146ebaff8
Diffstat (limited to 'keystore/java/android/security/KeyStoreParameter.java')
0 files changed, 0 insertions, 0 deletions