Home
last modified time | relevance | path

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

12

/frameworks/base/keystore/java/android/security/keystore/
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()
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()
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()
DAndroidKeyStoreSpi.java304 String keyAlgorithm = key.getAlgorithm(); in getLegacyKeyProtectionParameter()
489 key.getAlgorithm())); in setPrivateKeyEntry()
651 KeyProperties.KeyAlgorithm.toKeymasterSecretKeyAlgorithm(key.getAlgorithm()); in setSecretKeyEntry()
662 KeyProperties.KeyAlgorithm.toKeymasterDigest(key.getAlgorithm()); in setSecretKeyEntry()
666 + key.getAlgorithm()); in setSecretKeyEntry()
680 + " supported for HMAC key algorithm " + key.getAlgorithm()); in setSecretKeyEntry()
1109 original.getAlgorithm(), original.getEncoded()); in getPublicKey()
DAndroidKeyStoreKey.java46 public String getAlgorithm() { in getAlgorithm() method in AndroidKeyStoreKey
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.java40 assertEquals(KeyDerivationParams.ALGORITHM_SHA256, keyDerivationParams.getAlgorithm()); in createSha256Params_setsAlgorithm()
55 assertEquals(KeyDerivationParams.ALGORITHM_SHA256, keyDerivationParams.getAlgorithm()); in writeToParcel_writesAlgorithm()
DKeyChainProtectionParamsTest.java59 assertEquals(KeyDerivationParams.ALGORITHM_SHA256, keyDerivationParams.getAlgorithm()); in build_setsKeyDerivationParams()
89 assertEquals(KeyDerivationParams.ALGORITHM_SHA256, keyDerivationParams.getAlgorithm()); in writeToParcel_writesKeyDerivationParams()
DKeyChainSnapshotTest.java92 assertEquals(KeyDerivationParams.ALGORITHM_SHA256, keyDerivationParams.getAlgorithm()); in build_setsKeyChainProtectionParams()
159 assertEquals(KeyDerivationParams.ALGORITHM_SHA256, keyDerivationParams.getAlgorithm()); in writeToParcel_writesKeyChainProtectionParams()
/frameworks/base/wifi/tests/src/android/net/wifi/
DParcelUtilTest.java63 assertEquals(writeKey.getAlgorithm(), readKey.getAlgorithm()); in readWriteValidPrivateKey()
/frameworks/base/core/java/android/privacy/
DDifferentialPrivacyConfig.java33 String getAlgorithm(); in getAlgorithm() method
/frameworks/base/services/robotests/backup/src/com/android/server/backup/encryption/keys/
DTertiaryKeyGeneratorTest.java52 assertThat(secretKey.getAlgorithm()).isEqualTo(KEY_ALGORITHM); in generate_generatesAESKeys()
/frameworks/base/services/core/java/com/android/server/locksettings/
DSP800Derive.java46 m.init(new SecretKeySpec(mKeyBytes, m.getAlgorithm())); in getMac()
/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.java193 assertEquals(b.getAlgorithm(), a.getAlgorithm()); in assertKeyDerivationParamsAreEqual()
/frameworks/opt/net/ike/src/java/com/android/ike/ikev2/message/
DIkeAuthPayload.java101 SecretKeySpec prfKey = new SecretKeySpec(prfKeyBytes, prfMac.getAlgorithm()); in signWithPrf()
/frameworks/base/core/tests/privacytests/src/android/privacy/
DRapporEncoderTest.java58 assertEquals("Rappor", encoder.getConfig().getAlgorithm()); in testRapporEncoder_config()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
DKeySyncTaskTest.java325 assertThat(keyDerivationParams.getAlgorithm()).isEqualTo( in run_useScryptToHashPasswordInTestMode()
360 assertThat(keyDerivationParams.getAlgorithm()).isEqualTo( in run_useSha256ToHashPatternInProdMode()
396 assertThat(keyDerivationParams.getAlgorithm()).isEqualTo( in run_useScryptToHashPasswordInProdMode()
528 assertThat(keyDerivationParams.getAlgorithm()).isEqualTo( in run_sendsEncryptedKeysIfAvailableToSync_withRawPublicKey()

12