Home
last modified time | relevance | path

Searched refs:purposes (Results 1 – 10 of 10) sorted by relevance

/cts/tests/tests/keystore/src/android/keystore/cts/
DKeyAttestationTest.java158 int[] purposes = { in testEcAttestation() local
164 for (int purposeIndex = 0; purposeIndex < purposes.length; ++purposeIndex) { in testEcAttestation()
168 curves[curveIndex], keySizes[curveIndex], purposes[purposeIndex]); in testEcAttestation()
171 curves[curveIndex], keySizes[curveIndex], purposes[purposeIndex]); in testEcAttestation()
256 int[] purposes = { in testRsaAttestation() local
290 for (int purpose : purposes) { in testRsaAttestation()
401 int purposes, String[] paddingModes) throws Exception { in testRsaAttestation() argument
408 new KeyGenParameterSpec.Builder(keystoreAlias, purposes) in testRsaAttestation()
418 if (isEncryptionPurpose(purposes)) { in testRsaAttestation()
423 if (isSignaturePurpose(purposes)) { in testRsaAttestation()
[all …]
DSecretKeyFactoryTest.java102 int purposes; in testGetKeySpecWithKeystoreKeyAndKeyInfoReflectsAllAuthorizations() local
106 purposes = KeyProperties.PURPOSE_SIGN; in testGetKeySpecWithKeystoreKeyAndKeyInfoReflectsAllAuthorizations()
109 purposes = KeyProperties.PURPOSE_DECRYPT; in testGetKeySpecWithKeystoreKeyAndKeyInfoReflectsAllAuthorizations()
113 keyGenerator.init(new KeyGenParameterSpec.Builder("test1", purposes) in testGetKeySpecWithKeystoreKeyAndKeyInfoReflectsAllAuthorizations()
125 assertEquals(purposes, keyInfo.getPurposes()); in testGetKeySpecWithKeystoreKeyAndKeyInfoReflectsAllAuthorizations()
DTestUtils.java506 int purposes = (newPurposes == null) ? spec.getPurposes() : newPurposes; in buildUponInternal() local
507 KeyProtection.Builder result = new KeyProtection.Builder(purposes); in buildUponInternal()
545 int purposes = (newPurposes == null) ? spec.getPurposes() : newPurposes; in buildUponInternal() local
547 new KeyGenParameterSpec.Builder(spec.getKeystoreAlias(), purposes); in buildUponInternal()
886 String transformation, int purposes) { in getMinimalWorkingImportParametersForCipheringWith() argument
887 return getMinimalWorkingImportParametersForCipheringWith(transformation, purposes, false); in getMinimalWorkingImportParametersForCipheringWith()
891 String transformation, int purposes, boolean ivProvidedWhenEncrypting) { in getMinimalWorkingImportParametersForCipheringWith() argument
892 return getMinimalWorkingImportParametersForCipheringWith(transformation, purposes, in getMinimalWorkingImportParametersForCipheringWith()
897 String transformation, int purposes, boolean ivProvidedWhenEncrypting, in getMinimalWorkingImportParametersForCipheringWith() argument
908 && ((purposes & KeyProperties.PURPOSE_ENCRYPT) != 0)) { in getMinimalWorkingImportParametersForCipheringWith()
[all …]
DKeyGeneratorTest.java686 int purposes; in testGenerateHonorsRequestedAuthorizationsHelper() local
691 purposes = KeyProperties.PURPOSE_SIGN; in testGenerateHonorsRequestedAuthorizationsHelper()
694 purposes = KeyProperties.PURPOSE_DECRYPT; in testGenerateHonorsRequestedAuthorizationsHelper()
697 keyGenerator.init(getWorkingSpec(purposes) in testGenerateHonorsRequestedAuthorizationsHelper()
710 assertEquals(purposes, keyInfo.getPurposes()); in testGenerateHonorsRequestedAuthorizationsHelper()
734 private static KeyGenParameterSpec.Builder getWorkingSpec(int purposes) { in getWorkingSpec() argument
735 return new KeyGenParameterSpec.Builder("test1", purposes); in getWorkingSpec()
DKeyFactoryTest.java108 int purposes = KeyProperties.PURPOSE_DECRYPT | KeyProperties.PURPOSE_SIGN; in testGetKeySpecWithKeystorePrivateKeyAndKeyInfoReflectsAllAuthorizations() local
111 keyGenerator.initialize(new KeyGenParameterSpec.Builder("test1", purposes) in testGetKeySpecWithKeystorePrivateKeyAndKeyInfoReflectsAllAuthorizations()
123 assertEquals(purposes, keyInfo.getPurposes()); in testGetKeySpecWithKeystorePrivateKeyAndKeyInfoReflectsAllAuthorizations()
DCipherTest.java1744 String transformation, int purposes, boolean ivProvidedWhenEncrypting) in importDefaultKatKey() argument
1747 transformation, purposes, ivProvidedWhenEncrypting); in importDefaultKatKey()
1752 String transformation, int purposes, boolean ivProvidedWhenEncrypting) in importKatKeys() argument
1754 return importKatKeys(transformation, purposes, ivProvidedWhenEncrypting, false, false); in importKatKeys()
1758 String transformation, int purposes, boolean ivProvidedWhenEncrypting, in importKatKeys() argument
1761 transformation, purposes, ivProvidedWhenEncrypting, isUnlockedDeviceRequired, in importKatKeys()
DKeyPairGeneratorTest.java323 int purposes = KeyProperties.PURPOSE_SIGN | KeyProperties.PURPOSE_ENCRYPT; in testGenerateHonorsRequestedAuthorizationsHelper() local
325 generator.initialize(getWorkingSpec(purposes) in testGenerateHonorsRequestedAuthorizationsHelper()
338 assertEquals(purposes, keyInfo.getPurposes()); in testGenerateHonorsRequestedAuthorizationsHelper()
1829 private KeyGenParameterSpec.Builder getWorkingSpec(int purposes) { in getWorkingSpec() argument
1830 return new KeyGenParameterSpec.Builder(TEST_ALIAS_1, purposes); in getWorkingSpec()
/cts/tests/security/src/android/keystore/cts/
DAuthorizationList.java169 private Set<Integer> purposes; field in AuthorizationList
223 purposes = Asn1Utils.getIntegersFromAsn1Set(value); in AuthorizationList()
361 public static String purposesToString(Set<Integer> purposes) { in purposesToString() argument
362 return joinStrings(transform(purposes, forMap(purposeMap, "Unknown"))); in purposesToString()
419 return purposes; in getPurposes()
630 if (purposes != null && !purposes.isEmpty()) { in toString()
631 s.append("\nPurposes: ").append(purposesToString(purposes)); in toString()
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/
Dpixel_format_f32.rsh5 // following purposes in the refocus filter pipeline.
/cts/hostsidetests/sustainedperf/dhrystone/
DRationale317 Of course, for experimental purposes, post-linkage optimization,