Home
last modified time | relevance | path

Searched refs:keyCharacteristics (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/keystore/java/android/security/keystore/
DAndroidKeyStoreSecretKeyFactorySpi.java81 KeyCharacteristics keyCharacteristics = new KeyCharacteristics(); in getKeyInfo() local
83 keyAliasInKeystore, null, null, keyUid, keyCharacteristics); in getKeyInfo()
101 if (keyCharacteristics.hwEnforced.containsTag(KeymasterDefs.KM_TAG_ORIGIN)) { in getKeyInfo()
104 keyCharacteristics.hwEnforced.getEnum(KeymasterDefs.KM_TAG_ORIGIN, -1)); in getKeyInfo()
105 } else if (keyCharacteristics.swEnforced.containsTag(KeymasterDefs.KM_TAG_ORIGIN)) { in getKeyInfo()
108 keyCharacteristics.swEnforced.getEnum(KeymasterDefs.KM_TAG_ORIGIN, -1)); in getKeyInfo()
113 keyCharacteristics.getUnsignedInt(KeymasterDefs.KM_TAG_KEY_SIZE, -1); in getKeyInfo()
121 keyCharacteristics.getEnums(KeymasterDefs.KM_TAG_PURPOSE)); in getKeyInfo()
126 for (int keymasterPadding : keyCharacteristics.getEnums(KeymasterDefs.KM_TAG_PADDING)) { in getKeyInfo()
149 keyCharacteristics.getEnums(KeymasterDefs.KM_TAG_DIGEST)); in getKeyInfo()
[all …]
DAndroidKeyStoreProvider.java232 KeyCharacteristics keyCharacteristics = new KeyCharacteristics(); in getKeyCharacteristics() local
234 alias, null, null, uid, keyCharacteristics); in getKeyCharacteristics()
246 return keyCharacteristics; in getKeyCharacteristics()
252 KeyCharacteristics keyCharacteristics) in loadAndroidKeyStorePublicKeyFromKeystore() argument
263 Integer keymasterAlgorithm = keyCharacteristics.getEnum(KeymasterDefs.KM_TAG_ALGORITHM); in loadAndroidKeyStorePublicKeyFromKeystore()
293 @NonNull KeyCharacteristics keyCharacteristics) in loadAndroidKeyStoreKeyPairFromKeystore() argument
297 keyCharacteristics); in loadAndroidKeyStoreKeyPairFromKeystore()
314 @NonNull KeyCharacteristics keyCharacteristics) in loadAndroidKeyStorePrivateKeyFromKeystore() argument
317 keyCharacteristics); in loadAndroidKeyStorePrivateKeyFromKeystore()
331 @NonNull String secretKeyAlias, int uid, @NonNull KeyCharacteristics keyCharacteristics) in loadAndroidKeyStoreSecretKeyFromKeystore() argument
[all …]
DAndroidKeyStoreECDSASignatureSpi.java156 KeyCharacteristics keyCharacteristics = new KeyCharacteristics(); in initKey() local
158 key.getAlias(), null, null, key.getUid(), keyCharacteristics); in initKey()
162 long keySizeBits = keyCharacteristics.getUnsignedInt(KeymasterDefs.KM_TAG_KEY_SIZE, -1); in initKey()
DAndroidKeyStoreRSACipherSpi.java416 KeyCharacteristics keyCharacteristics = new KeyCharacteristics(); in initKey() local
418 keystoreKey.getAlias(), null, null, keystoreKey.getUid(), keyCharacteristics); in initKey()
423 long keySizeBits = keyCharacteristics.getUnsignedInt(KeymasterDefs.KM_TAG_KEY_SIZE, -1); in initKey()
/frameworks/base/keystore/java/android/security/
DKeyStore.java516 private KeyCharacteristics keyCharacteristics; field in KeyStore.KeyCharacteristicsCallbackResult
519 KeyCharacteristics keyCharacteristics) { in KeyCharacteristicsCallbackResult() argument
521 this.keyCharacteristics = keyCharacteristics; in KeyCharacteristicsCallbackResult()
533 return keyCharacteristics; in getKeyCharacteristics()
536 public void setKeyCharacteristics(KeyCharacteristics keyCharacteristics) { in setKeyCharacteristics() argument
537 this.keyCharacteristics = keyCharacteristics; in setKeyCharacteristics()
548 KeyCharacteristics keyCharacteristics) in onFinished() argument
551 new KeyCharacteristicsCallbackResult(keystoreResponse, keyCharacteristics)); in onFinished()
1329 KeyCharacteristics keyCharacteristics = new KeyCharacteristics(); in getInvalidKeyException() local
1332 keyCharacteristics); in getInvalidKeyException()
[all …]