Searched refs:keyAlgorithm (Results 1 – 3 of 3) sorted by relevance
176 @NonNull @KeyProperties.KeyAlgorithmEnum String keyAlgorithm, in getAndroidKeyStorePublicKey() argument180 KeyFactory keyFactory = KeyFactory.getInstance(keyAlgorithm); in getAndroidKeyStorePublicKey()184 "Failed to obtain " + keyAlgorithm + " KeyFactory", e); in getAndroidKeyStorePublicKey()188 if (KeyProperties.KEY_ALGORITHM_EC.equalsIgnoreCase(keyAlgorithm)) { in getAndroidKeyStorePublicKey()190 } else if (KeyProperties.KEY_ALGORITHM_RSA.equalsIgnoreCase(keyAlgorithm)) { in getAndroidKeyStorePublicKey()194 + keyAlgorithm); in getAndroidKeyStorePublicKey()201 String keyAlgorithm = publicKey.getAlgorithm(); in getAndroidKeyStorePrivateKey() local202 if (KeyProperties.KEY_ALGORITHM_EC.equalsIgnoreCase(keyAlgorithm)) { in getAndroidKeyStorePrivateKey()205 } else if (KeyProperties.KEY_ALGORITHM_RSA.equalsIgnoreCase(keyAlgorithm)) { in getAndroidKeyStorePrivateKey()210 + keyAlgorithm); in getAndroidKeyStorePrivateKey()
289 String keyAlgorithm = key.getAlgorithm(); in getLegacyKeyProtectionParameter() local291 if (KeyProperties.KEY_ALGORITHM_EC.equalsIgnoreCase(keyAlgorithm)) { in getLegacyKeyProtectionParameter()304 } else if (KeyProperties.KEY_ALGORITHM_RSA.equalsIgnoreCase(keyAlgorithm)) { in getLegacyKeyProtectionParameter()333 throw new KeyStoreException("Unsupported key algorithm: " + keyAlgorithm); in getLegacyKeyProtectionParameter()
295 String keyAlgorithm = getSignatureAlgorithmJcaKeyAlgorithm(bestSigAlgorithm); in verifySigner() local303 KeyFactory.getInstance(keyAlgorithm) in verifySigner()