Home
last modified time | relevance | path

Searched refs:getAlgorithm (Results 1 – 25 of 39) sorted by relevance

12

/frameworks/base/keystore/java/android/security/keystore/
DAndroidKeyStoreUnauthenticatedAESCipherSpi.java131 if (!KeyProperties.KEY_ALGORITHM_AES.equalsIgnoreCase(key.getAlgorithm())) { in initKey()
133 "Unsupported key algorithm: " + key.getAlgorithm() + ". Only " + in initKey()
200 if (!"AES".equalsIgnoreCase(params.getAlgorithm())) { in initAlgorithmSpecificParameters()
202 "Unsupported AlgorithmParameters algorithm: " + params.getAlgorithm() in initAlgorithmSpecificParameters()
DAndroidKeyStore3DESCipherSpi.java105 if (!KeyProperties.KEY_ALGORITHM_3DES.equalsIgnoreCase(key.getAlgorithm())) { in initKey()
107 "Unsupported key algorithm: " + key.getAlgorithm() + ". Only " + in initKey()
211 if (!"DESede".equalsIgnoreCase(params.getAlgorithm())) { in initAlgorithmSpecificParameters()
213 "Unsupported AlgorithmParameters algorithm: " + params.getAlgorithm() in initAlgorithmSpecificParameters()
DAndroidKeyStoreRSASignatureSpi.java140 if (!KeyProperties.KEY_ALGORITHM_RSA.equalsIgnoreCase(key.getAlgorithm())) { in initKey()
141 throw new InvalidKeyException("Unsupported key algorithm: " + key.getAlgorithm() in initKey()
DAndroidKeyStoreAuthenticatedAESCipherSpi.java132 if (!"GCM".equalsIgnoreCase(params.getAlgorithm())) { in initAlgorithmSpecificParameters()
134 "Unsupported AlgorithmParameters algorithm: " + params.getAlgorithm() in initAlgorithmSpecificParameters()
279 if (!KeyProperties.KEY_ALGORITHM_AES.equalsIgnoreCase(key.getAlgorithm())) { in initKey()
281 "Unsupported key algorithm: " + key.getAlgorithm() + ". Only " + in initKey()
DAndroidKeyStoreKeyFactorySpi.java105 "Obtaining RSAPublicKeySpec not supported for " + key.getAlgorithm() + " " in engineGetKeySpec()
117 "Obtaining ECPublicKeySpec not supported for " + key.getAlgorithm() + " " in engineGetKeySpec()
DAndroidKeyStoreECDSASignatureSpi.java151 if (!KeyProperties.KEY_ALGORITHM_EC.equalsIgnoreCase(key.getAlgorithm())) { in initKey()
152 throw new InvalidKeyException("Unsupported key algorithm: " + key.getAlgorithm() in initKey()
DAndroidKeyStoreKey.java46 public String getAlgorithm() { in getAlgorithm() method in AndroidKeyStoreKey
DAndroidKeyStoreSpi.java288 String keyAlgorithm = key.getAlgorithm(); in getLegacyKeyProtectionParameter()
473 key.getAlgorithm())); in setPrivateKeyEntry()
635 KeyProperties.KeyAlgorithm.toKeymasterSecretKeyAlgorithm(key.getAlgorithm()); in setSecretKeyEntry()
646 KeyProperties.KeyAlgorithm.toKeymasterDigest(key.getAlgorithm()); in setSecretKeyEntry()
650 + key.getAlgorithm()); in setSecretKeyEntry()
664 + " supported for HMAC key algorithm " + key.getAlgorithm()); in setSecretKeyEntry()
1093 original.getAlgorithm(), original.getEncoded()); in getPublicKey()
DAndroidKeyStoreRSACipherSpi.java361 if (!KeyProperties.KEY_ALGORITHM_RSA.equalsIgnoreCase(key.getAlgorithm())) { in initKey()
362 throw new InvalidKeyException("Unsupported key algorithm: " + key.getAlgorithm() in initKey()
DAndroidKeyStoreCipherSpiBase.java603 SecretKeyFactory keyFactory = SecretKeyFactory.getInstance(key.getAlgorithm()); in engineWrap()
620 KeyFactory keyFactory = KeyFactory.getInstance(key.getAlgorithm()); in engineWrap()
636 KeyFactory keyFactory = KeyFactory.getInstance(key.getAlgorithm()); in engineWrap()
/frameworks/base/core/tests/coretests/src/android/security/keystore/recovery/
DKeyDerivationParamsTest.java39 assertEquals(KeyDerivationParams.ALGORITHM_SHA256, keyDerivationParams.getAlgorithm()); in createSha256Params_setsAlgorithm()
54 assertEquals(KeyDerivationParams.ALGORITHM_SHA256, keyDerivationParams.getAlgorithm()); in writeToParcel_writesAlgorithm()
DKeyChainProtectionParamsTest.java58 assertEquals(KeyDerivationParams.ALGORITHM_SHA256, keyDerivationParams.getAlgorithm()); in build_setsKeyDerivationParams()
88 assertEquals(KeyDerivationParams.ALGORITHM_SHA256, keyDerivationParams.getAlgorithm()); in writeToParcel_writesKeyDerivationParams()
DKeyChainSnapshotTest.java83 assertEquals(KeyDerivationParams.ALGORITHM_SHA256, keyDerivationParams.getAlgorithm()); in build_setsKeyChainProtectionParams()
142 assertEquals(KeyDerivationParams.ALGORITHM_SHA256, keyDerivationParams.getAlgorithm()); in writeToParcel_writesKeyChainProtectionParams()
/frameworks/base/wifi/tests/src/android/net/wifi/
DParcelUtilTest.java62 assertEquals(writeKey.getAlgorithm(), readKey.getAlgorithm()); in readWriteValidPrivateKey()
DWifiEnterpriseConfigTest.java390 assertEquals(clientKey.getAlgorithm(), actualClientKey.getAlgorithm()); in parcelConfigWithKeyAndCerts()
/frameworks/base/core/java/android/privacy/
DDifferentialPrivacyConfig.java33 String getAlgorithm(); in getAlgorithm() method
/frameworks/base/core/java/android/webkit/
DTokenBindingService.java53 public abstract String getAlgorithm(); in getAlgorithm() method in TokenBindingService.TokenBindingKey
/frameworks/base/core/java/android/privacy/internal/longitudinalreporting/
DLongitudinalReportingConfig.java81 public String getAlgorithm() { in getAlgorithm() method in LongitudinalReportingConfig
/frameworks/base/core/java/android/privacy/internal/rappor/
DRapporConfig.java75 public String getAlgorithm() { in getAlgorithm() method in RapporConfig
/frameworks/base/core/java/android/security/keystore/recovery/
DKeyDerivationParams.java119 public @KeyDerivationAlgorithm int getAlgorithm() { in getAlgorithm() method in KeyDerivationParams
/frameworks/base/wifi/java/android/net/wifi/
DParcelUtil.java59 dest.writeString(key.getAlgorithm()); in writePrivateKey()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/storage/
DRecoverySnapshotStorageTest.java192 assertEquals(b.getAlgorithm(), a.getAlgorithm()); in assertKeyDerivationParamsAreEqual()
/frameworks/base/core/tests/privacytests/src/android/privacy/
DRapporEncoderTest.java57 assertEquals("Rappor", encoder.getConfig().getAlgorithm()); in testRapporEncoder_config()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
DKeySyncTaskTest.java317 assertThat(keyDerivationParams.getAlgorithm()).isEqualTo( in run_useScryptToHashPasswordInTestMode()
352 assertThat(keyDerivationParams.getAlgorithm()).isEqualTo( in run_useSha256ToHashPatternInProdMode()
388 assertThat(keyDerivationParams.getAlgorithm()).isEqualTo( in run_useScryptToHashPasswordInProdMode()
520 assertThat(keyDerivationParams.getAlgorithm()).isEqualTo( in run_sendsEncryptedKeysIfAvailableToSync_withRawPublicKey()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/serialization/
DKeyChainSnapshotSerializerTest.java117 assertThat(roundTripParams().getKeyDerivationParams().getAlgorithm()).isEqualTo(ALGORITHM); in roundTripParams_persistsAlgorithm()

12