Home
last modified time | relevance | path

Searched refs:keyFile (Results 1 – 6 of 6) sorted by relevance

/aosp12/frameworks/base/keystore/java/android/security/
H A DSystemKeyStore.java74 File keyFile = getKeyFile(keyName); in generateNewKey() local
75 if (keyFile.exists()) { in generateNewKey()
88 if (!keyFile.createNewFile()) { in generateNewKey()
92 FileOutputStream fos = new FileOutputStream(keyFile); in generateNewKey()
109 return keyFile; in getKeyFile()
117 File keyFile = getKeyFile(keyName); in retrieveKey() local
118 if (!keyFile.exists()) { in retrieveKey()
121 return IoUtils.readFileAsByteArray(keyFile.toString()); in retrieveKey()
127 File keyFile = getKeyFile(keyName); in deleteKey() local
128 if (!keyFile.exists()) { in deleteKey()
[all …]
/aosp12/build/make/tools/signtos/
H A DSignTos.java76 private static String readPassword(File keyFile) { in readPassword() argument
78 System.out.print("Enter password for " + keyFile + " (password will not be hidden): "); in readPassword()
97 private static PKCS8EncodedKeySpec decryptPrivateKey(byte[] encryptedPrivateKey, File keyFile) in decryptPrivateKey() argument
107 char[] password = readPassword(keyFile).toCharArray(); in decryptPrivateKey()
118 System.err.println("signapk: Password for " + keyFile + " may be bad."); in decryptPrivateKey()
/aosp12/packages/services/Telephony/src/com/android/phone/
H A DCallTime.java205 String keyFile = baseName + ".key"; in startTrace() local
212 file = new File(keyFile); in startTrace()
/aosp12/frameworks/base/services/core/java/com/android/server/adb/
H A DAdbDebuggingManager.java1565 File keyFile = getUserKeyFile(); in writeKey() local
1567 if (keyFile == null) { in writeKey()
1576 FileUtils.setPermissions(keyFile.toString(), in writeKey()
1587 File keyFile = getUserKeyFile(); in writeKeys() local
1589 if (keyFile == null) { in writeKeys()
1593 atomicKeyFile = new AtomicFile(keyFile); in writeKeys()
1612 File keyFile = getUserKeyFile(); in deleteKeyFile() local
1613 if (keyFile != null) { in deleteKeyFile()
1614 keyFile.delete(); in deleteKeyFile()
1828 AdbKeyStore(File keyFile) { in AdbKeyStore() argument
[all …]
/aosp12/build/make/tools/signapk/src/com/android/signapk/
H A DSignApk.java202 private static String readPassword(File keyFile) { in readPassword() argument
206 System.out.print("Enter password for " + keyFile + " (password will not be hidden): "); in readPassword()
215 if ((pwd = console.readPassword("[%s]", "Enter password for " + keyFile)) != null) { in readPassword()
232 private static PKCS8EncodedKeySpec decryptPrivateKey(byte[] encryptedPrivateKey, File keyFile) in decryptPrivateKey() argument
242 char[] password = readPassword(keyFile).toCharArray(); in decryptPrivateKey()
253 System.err.println("signapk: Password for " + keyFile + " may be bad."); in decryptPrivateKey()
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/adb/
H A DAdbDebuggingManagerTest.java1029 private boolean isKeyInFile(String key, File keyFile) throws Exception { in isKeyInFile() argument
1033 if (keyFile.exists()) { in isKeyInFile()
1034 try (BufferedReader in = new BufferedReader(new FileReader(keyFile))) { in isKeyInFile()