Home
last modified time | relevance | path

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

/cts/tests/tests/keystore/src/android/keystore/cts/
DKeyAttestationTest.java177 int[] purposes = { in testEcAttestation() local
185 for (int purposeIndex = 0; purposeIndex < purposes.length; ++purposeIndex) { in testEcAttestation()
191 purposes[purposeIndex], devicePropertiesAttestation); in testEcAttestation()
437 int[] purposes = { in testRsaAttestation() local
473 for (int purpose : purposes) { in testRsaAttestation()
653 int purposes, String[] paddingModes, boolean devicePropertiesAttestation) in testRsaAttestation() argument
657 " / purposes " + purposes + " / paddingModes " + Arrays.toString(paddingModes) + in testRsaAttestation()
665 new KeyGenParameterSpec.Builder(keystoreAlias, purposes) in testRsaAttestation()
676 if (isEncryptionPurpose(purposes)) { in testRsaAttestation()
681 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.java564 int purposes = (newPurposes == null) ? spec.getPurposes() : newPurposes; in buildUponInternal() local
565 KeyProtection.Builder result = new KeyProtection.Builder(purposes); in buildUponInternal()
603 int purposes = (newPurposes == null) ? spec.getPurposes() : newPurposes; in buildUponInternal() local
605 new KeyGenParameterSpec.Builder(spec.getKeystoreAlias(), purposes); in buildUponInternal()
1014 String transformation, int purposes) { in getMinimalWorkingImportParametersForCipheringWith() argument
1015 return getMinimalWorkingImportParametersForCipheringWith(transformation, purposes, false); in getMinimalWorkingImportParametersForCipheringWith()
1019 String transformation, int purposes, boolean ivProvidedWhenEncrypting) { in getMinimalWorkingImportParametersForCipheringWith() argument
1020 return getMinimalWorkingImportParametersForCipheringWith(transformation, purposes, in getMinimalWorkingImportParametersForCipheringWith()
1025 String transformation, int purposes, boolean ivProvidedWhenEncrypting, in getMinimalWorkingImportParametersForCipheringWith() argument
1036 && ((purposes & KeyProperties.PURPOSE_ENCRYPT) != 0)) { in getMinimalWorkingImportParametersForCipheringWith()
[all …]
DKeyGeneratorTest.java689 int purposes; in testGenerateHonorsRequestedAuthorizationsHelper() local
694 purposes = KeyProperties.PURPOSE_SIGN; in testGenerateHonorsRequestedAuthorizationsHelper()
697 purposes = KeyProperties.PURPOSE_DECRYPT; in testGenerateHonorsRequestedAuthorizationsHelper()
700 keyGenerator.init(getWorkingSpec(purposes) in testGenerateHonorsRequestedAuthorizationsHelper()
713 assertEquals(purposes, keyInfo.getPurposes()); in testGenerateHonorsRequestedAuthorizationsHelper()
761 private static KeyGenParameterSpec.Builder getWorkingSpec(int purposes) { in getWorkingSpec() argument
762 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.java1768 String transformation, int purposes, boolean ivProvidedWhenEncrypting) in importDefaultKatKey() argument
1771 transformation, purposes, ivProvidedWhenEncrypting); in importDefaultKatKey()
1776 String transformation, int purposes, boolean ivProvidedWhenEncrypting) in importKatKeys() argument
1778 return importKatKeys(transformation, purposes, ivProvidedWhenEncrypting, false, false); in importKatKeys()
1782 String transformation, int purposes, boolean ivProvidedWhenEncrypting, in importKatKeys() argument
1785 transformation, purposes, ivProvidedWhenEncrypting, isUnlockedDeviceRequired, in importKatKeys()
DKeyPairGeneratorTest.java328 int purposes = KeyProperties.PURPOSE_SIGN | KeyProperties.PURPOSE_ENCRYPT; in testGenerateHonorsRequestedAuthorizationsHelper() local
330 generator.initialize(getWorkingSpec(purposes) in testGenerateHonorsRequestedAuthorizationsHelper()
343 assertEquals(purposes, keyInfo.getPurposes()); in testGenerateHonorsRequestedAuthorizationsHelper()
1902 private KeyGenParameterSpec.Builder getWorkingSpec(int purposes) { in getWorkingSpec() argument
1903 return new KeyGenParameterSpec.Builder(TEST_ALIAS_1, purposes); in getWorkingSpec()
/cts/tests/security/src/android/keystore/cts/
DAuthorizationList.java174 private Set<Integer> purposes; field in AuthorizationList
232 purposes = Asn1Utils.getIntegersFromAsn1Set(value); in AuthorizationList()
356 purposes = CborUtils.getIntSet(submodMap, key); in AuthorizationList()
490 public static String purposesToString(Set<Integer> purposes) { in purposesToString() argument
491 return joinStrings(transform(purposes, forMap(purposeMap, "Unknown"))); in purposesToString()
552 return purposes; in getPurposes()
776 if (purposes != null && !purposes.isEmpty()) { in toString()
777 s.append("\nPurposes: ").append(purposesToString(purposes)); in toString()
/cts/tests/framework/base/windowmanager/appPrereleaseSdk/fake-framework/
DAndroid.bp17 // A fake framework that mimics an older, pre-release SDK for the purposes of
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/
Dpixel_format_f32.rsh5 // following purposes in the refocus filter pipeline.
/cts/apps/CtsVerifier/
DNOTICE.txt77 control with that entity. For the purposes of this definition,
103 represent, as a whole, an original work of authorship. For the purposes
113 the copyright owner. For the purposes of this definition, "submitted"
176 of the NOTICE file are for informational purposes only and
306 control with that entity. For the purposes of this definition,
332 represent, as a whole, an original work of authorship. For the purposes
342 the copyright owner. For the purposes of this definition, "submitted"
405 of the NOTICE file are for informational purposes only and
2619 control with that entity. For the purposes of this definition,
2645 represent, as a whole, an original work of authorship. For the purposes
[all …]
/cts/hostsidetests/sustainedperf/dhrystone/
DRationale317 Of course, for experimental purposes, post-linkage optimization,