Home
last modified time | relevance | path

Searched refs:keyAliasInKeystore (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/keystore/java/android/security/keystore/
DAndroidKeyStoreSecretKeyFactorySpi.java65 String keyAliasInKeystore = keystoreKey.getAlias(); in engineGetKeySpec() local
67 if (keyAliasInKeystore.startsWith(Credentials.USER_PRIVATE_KEY)) { in engineGetKeySpec()
68 entryAlias = keyAliasInKeystore.substring(Credentials.USER_PRIVATE_KEY.length()); in engineGetKeySpec()
69 } else if (keyAliasInKeystore.startsWith(Credentials.USER_SECRET_KEY)){ in engineGetKeySpec()
71 entryAlias = keyAliasInKeystore.substring(Credentials.USER_SECRET_KEY.length()); in engineGetKeySpec()
73 throw new InvalidKeySpecException("Invalid key alias: " + keyAliasInKeystore); in engineGetKeySpec()
76 return getKeyInfo(mKeyStore, entryAlias, keyAliasInKeystore, keystoreKey.getUid()); in engineGetKeySpec()
79 static KeyInfo getKeyInfo(KeyStore keyStore, String entryAlias, String keyAliasInKeystore, in getKeyInfo() argument
83 keyAliasInKeystore, null, null, keyUid, keyCharacteristics); in getKeyInfo()
DAndroidKeyStoreKeyFactorySpi.java66 String keyAliasInKeystore = keystorePrivateKey.getAlias(); in engineGetKeySpec() local
68 if (keyAliasInKeystore.startsWith(Credentials.USER_PRIVATE_KEY)) { in engineGetKeySpec()
69 entryAlias = keyAliasInKeystore.substring(Credentials.USER_PRIVATE_KEY.length()); in engineGetKeySpec()
71 throw new InvalidKeySpecException("Invalid key alias: " + keyAliasInKeystore); in engineGetKeySpec()
75 mKeyStore, entryAlias, keyAliasInKeystore, keystorePrivateKey.getUid()); in engineGetKeySpec()
DAndroidKeyStoreKeyGeneratorSpi.java311 String keyAliasInKeystore = Credentials.USER_PRIVATE_KEY + spec.getKeystoreAlias(); in engineGenerateKey() local
317 keyAliasInKeystore, in engineGenerateKey()
339 keyAliasInKeystore, spec.getUid(), keyAlgorithmJCA); in engineGenerateKey()
DAndroidKeyStoreSpi.java601 String keyAliasInKeystore = ((AndroidKeyStoreSecretKey) key).getAlias(); in setSecretKeyEntry() local
602 if (keyAliasInKeystore == null) { in setSecretKeyEntry()
606 if (!keyAliasInKeystore.startsWith(keyAliasPrefix)) { in setSecretKeyEntry()
609 if (!keyAliasInKeystore.startsWith(keyAliasPrefix)) { in setSecretKeyEntry()
611 + keyAliasInKeystore); in setSecretKeyEntry()
615 keyAliasInKeystore.substring(keyAliasPrefix.length()); in setSecretKeyEntry()
748 String keyAliasInKeystore = Credentials.USER_PRIVATE_KEY + entryAlias; in setSecretKeyEntry() local
750 keyAliasInKeystore, in setSecretKeyEntry()