Home
last modified time | relevance | path

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

/frameworks/base/keystore/java/android/security/keystore2/
DAndroidKeyStoreKeyPairGeneratorSpi.java299 mKeymasterPurposes = KeyProperties.Purpose.allToKeymaster(spec.getPurposes()); in initialize()
303 if (((spec.getPurposes() & KeyProperties.PURPOSE_ENCRYPT) != 0) in initialize()
353 if ((spec.getPurposes() & KeyProperties.PURPOSE_ATTEST_KEY) != 0 in checkAttestKeyPurpose()
354 && spec.getPurposes() != KeyProperties.PURPOSE_ATTEST_KEY) { in checkAttestKeyPurpose()
370 && spec.getPurposes() != KeyProperties.PURPOSE_AGREE_KEY) { in checkCorrectKeyPurposeForCurve()
374 && !hasOnlyAllowedPurposeForEd25519(spec.getPurposes())) { in checkCorrectKeyPurposeForCurve()
718 if ((mSpec.getPurposes() & KeyProperties.PURPOSE_WRAP_KEY) != 0) { in generateKeyPairHelper()
1060 if ((spec.getPurposes() & KeyProperties.PURPOSE_SIGN) == 0) { in getCertificateSignatureAlgorithm()
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()
DAndroidKeyStoreSpi.java471 KeyStore2ParameterUtils.forEachSetFlag(spec.getPurposes(), (purpose) -> { in setPrivateKeyEntry()
494 if (((spec.getPurposes() & KeyProperties.PURPOSE_ENCRYPT) != 0) in setPrivateKeyEntry()
707 KeyStore2ParameterUtils.forEachSetFlag(params.getPurposes(), (purpose) -> { in setSecretKeyEntry()
715 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.txt37812 method public int getPurposes();
37871 method public int getPurposes();
37954 method public int getPurposes();
/frameworks/base/boot/
Dboot-image-profile.txt13374 HSPLandroid/security/keystore/KeyGenParameterSpec;->getPurposes()I
/frameworks/base/config/
Dboot-image-profile.txt13376 HSPLandroid/security/keystore/KeyGenParameterSpec;->getPurposes()I