Home
last modified time | relevance | path

Searched refs:getPurposes (Results 1 – 13 of 13) sorted by relevance

/frameworks/base/keystore/java/android/security/keystore2/
DAndroidKeyStoreKeyGeneratorSpi.java194 mKeymasterPurposes = KeyProperties.Purpose.allToKeymaster(spec.getPurposes()); in engineInit()
202 if (((spec.getPurposes() & KeyProperties.PURPOSE_ENCRYPT) != 0) in engineInit()
359 if (((spec.getPurposes() & KeyProperties.PURPOSE_ENCRYPT) != 0) in engineGenerateKey()
DAndroidKeyStoreKeyPairGeneratorSpi.java260 mKeymasterPurposes = KeyProperties.Purpose.allToKeymaster(spec.getPurposes()); in initialize()
264 if (((spec.getPurposes() & KeyProperties.PURPOSE_ENCRYPT) != 0) in initialize()
313 if ((spec.getPurposes() & KeyProperties.PURPOSE_ATTEST_KEY) != 0 in checkAttestKeyPurpose()
314 && spec.getPurposes() != KeyProperties.PURPOSE_ATTEST_KEY) { in checkAttestKeyPurpose()
621 if ((mSpec.getPurposes() & KeyProperties.PURPOSE_WRAP_KEY) != 0) { in generateKeyPairHelper()
909 if ((spec.getPurposes() & KeyProperties.PURPOSE_SIGN) == 0) { in getCertificateSignatureAlgorithm()
DAndroidKeyStoreSpi.java471 KeyStore2ParameterUtils.forEachSetFlag(spec.getPurposes(), (purpose) -> { in setPrivateKeyEntry()
494 if (((spec.getPurposes() & KeyProperties.PURPOSE_ENCRYPT) != 0) in setPrivateKeyEntry()
709 KeyStore2ParameterUtils.forEachSetFlag(params.getPurposes(), (purpose) -> { in setSecretKeyEntry()
717 if ((params.getPurposes() & KeyProperties.PURPOSE_ENCRYPT) != 0) { in setSecretKeyEntry()
/frameworks/base/keystore/tests/src/android/security/keystore/
DKeyGenParameterSpecTest.java51 assertThat(copiedSpec.getPurposes(), is(KEY_PURPOSES)); in testBuilderCopyingEmptyValues()
/frameworks/base/keystore/tests/src/android/security/
DParcelableKeyGenParameterSpecTest.java93 assertThat(spec.getPurposes(), is(KEY_PURPOSES)); in validateSpecValues()
151 assertThat(fromParcel.getPurposes(), is(KEY_PURPOSES)); in testParcelingWithNullValues()
/frameworks/base/keystore/java/android/security/keystore/
DKeyGenParameterSpec.java559 public @KeyProperties.PurposeEnum int getPurposes() { in getPurposes() method in KeyGenParameterSpec
956 this(sourceSpec.getKeystoreAlias(), sourceSpec.getPurposes()); in Builder()
967 mPurposes = sourceSpec.getPurposes(); in Builder()
DKeyInfo.java211 public @KeyProperties.PurposeEnum int getPurposes() { in getPurposes() method in KeyInfo
DParcelableKeyGenParameterSpec.java61 out.writeInt(mSpec.getPurposes()); in writeToParcel()
DKeyProtection.java324 public @KeyProperties.PurposeEnum int getPurposes() { in getPurposes() method in KeyProtection
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
DPlatformKeyManagerTest.java136 assertEquals(KeyProperties.PURPOSE_ENCRYPT, getEncryptKeyProtection().getPurposes()); in init_createsEncryptKeyWithCorrectPurposes()
178 assertEquals(KeyProperties.PURPOSE_DECRYPT, getDecryptKeyProtection().getPurposes()); in init_createsDecryptKeyWithCorrectPurposes()
/frameworks/base/core/api/
Dcurrent.txt37471 method public int getPurposes();
37530 method public int getPurposes();
37613 method public int getPurposes();
/frameworks/base/boot/
Dboot-image-profile.txt14000 HSPLandroid/security/keystore/KeyGenParameterSpec;->getPurposes()I
/frameworks/base/config/
Dboot-image-profile.txt13990 HSPLandroid/security/keystore/KeyGenParameterSpec;->getPurposes()I