Home
last modified time | relevance | path

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

/frameworks/base/keystore/java/android/security/keystore/
DAndroidKeyStoreProvider.java190 @NonNull @KeyProperties.KeyAlgorithmEnum String keyAlgorithm, in getAndroidKeyStorePublicKey() argument
194 KeyFactory keyFactory = KeyFactory.getInstance(keyAlgorithm); in getAndroidKeyStorePublicKey()
198 "Failed to obtain " + keyAlgorithm + " KeyFactory", e); in getAndroidKeyStorePublicKey()
202 if (KeyProperties.KEY_ALGORITHM_EC.equalsIgnoreCase(keyAlgorithm)) { in getAndroidKeyStorePublicKey()
204 } else if (KeyProperties.KEY_ALGORITHM_RSA.equalsIgnoreCase(keyAlgorithm)) { in getAndroidKeyStorePublicKey()
208 + keyAlgorithm); in getAndroidKeyStorePublicKey()
215 String keyAlgorithm = publicKey.getAlgorithm(); in getAndroidKeyStorePrivateKey() local
216 if (KeyProperties.KEY_ALGORITHM_EC.equalsIgnoreCase(keyAlgorithm)) { in getAndroidKeyStorePrivateKey()
219 } else if (KeyProperties.KEY_ALGORITHM_RSA.equalsIgnoreCase(keyAlgorithm)) { in getAndroidKeyStorePrivateKey()
224 + keyAlgorithm); in getAndroidKeyStorePrivateKey()
DAndroidKeyStoreSpi.java304 String keyAlgorithm = key.getAlgorithm(); in getLegacyKeyProtectionParameter() local
306 if (KeyProperties.KEY_ALGORITHM_EC.equalsIgnoreCase(keyAlgorithm)) { in getLegacyKeyProtectionParameter()
319 } else if (KeyProperties.KEY_ALGORITHM_RSA.equalsIgnoreCase(keyAlgorithm)) { in getLegacyKeyProtectionParameter()
348 throw new KeyStoreException("Unsupported key algorithm: " + keyAlgorithm); in getLegacyKeyProtectionParameter()
/frameworks/base/core/java/android/util/apk/
DApkSignatureSchemeV2Verifier.java269 String keyAlgorithm = getSignatureAlgorithmJcaKeyAlgorithm(bestSigAlgorithm); in verifySigner() local
277 KeyFactory.getInstance(keyAlgorithm) in verifySigner()
DApkSignatureSchemeV3Verifier.java282 String keyAlgorithm = getSignatureAlgorithmJcaKeyAlgorithm(bestSigAlgorithm); in verifySigner() local
290 KeyFactory.getInstance(keyAlgorithm) in verifySigner()