Home
last modified time | relevance | path

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

/cts/tests/tests/keystore/src/android/keystore/cts/
DSecretKeyFactoryTest.java94 int purposes; in testGetKeySpecWithKeystoreKeyAndKeyInfoReflectsAllAuthorizations() local
98 purposes = KeyProperties.PURPOSE_SIGN; in testGetKeySpecWithKeystoreKeyAndKeyInfoReflectsAllAuthorizations()
101 purposes = KeyProperties.PURPOSE_DECRYPT; in testGetKeySpecWithKeystoreKeyAndKeyInfoReflectsAllAuthorizations()
105 keyGenerator.init(new KeyGenParameterSpec.Builder("test1", purposes) in testGetKeySpecWithKeystoreKeyAndKeyInfoReflectsAllAuthorizations()
117 assertEquals(purposes, keyInfo.getPurposes()); in testGetKeySpecWithKeystoreKeyAndKeyInfoReflectsAllAuthorizations()
DKeyGeneratorTest.java473 int purposes; in testGenerateHonorsRequestedAuthorizations() local
478 purposes = KeyProperties.PURPOSE_SIGN; in testGenerateHonorsRequestedAuthorizations()
481 purposes = KeyProperties.PURPOSE_DECRYPT; in testGenerateHonorsRequestedAuthorizations()
484 keyGenerator.init(getWorkingSpec(purposes) in testGenerateHonorsRequestedAuthorizations()
496 assertEquals(purposes, keyInfo.getPurposes()); in testGenerateHonorsRequestedAuthorizations()
520 private static KeyGenParameterSpec.Builder getWorkingSpec(int purposes) { in getWorkingSpec() argument
521 return new KeyGenParameterSpec.Builder("test1", purposes); in getWorkingSpec()
DTestUtils.java487 int purposes = (newPurposes == null) ? spec.getPurposes() : newPurposes; in buildUponInternal() local
488 KeyProtection.Builder result = new KeyProtection.Builder(purposes); in buildUponInternal()
525 int purposes = (newPurposes == null) ? spec.getPurposes() : newPurposes; in buildUponInternal() local
527 new KeyGenParameterSpec.Builder(spec.getKeystoreAlias(), purposes); in buildUponInternal()
861 String transformation, int purposes) { in getMinimalWorkingImportParametersForCipheringWith() argument
862 return getMinimalWorkingImportParametersForCipheringWith(transformation, purposes, false); in getMinimalWorkingImportParametersForCipheringWith()
866 String transformation, int purposes, boolean ivProvidedWhenEncrypting) { in getMinimalWorkingImportParametersForCipheringWith() argument
875 && ((purposes & KeyProperties.PURPOSE_ENCRYPT) != 0)) { in getMinimalWorkingImportParametersForCipheringWith()
879 purposes) in getMinimalWorkingImportParametersForCipheringWith()
890 purposes) in getMinimalWorkingImportParametersForCipheringWith()
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()
DKeyPairGeneratorTest.java315 int purposes = KeyProperties.PURPOSE_SIGN | KeyProperties.PURPOSE_ENCRYPT; in testGenerateHonorsRequestedAuthorizations() local
317 generator.initialize(getWorkingSpec(purposes) in testGenerateHonorsRequestedAuthorizations()
329 assertEquals(purposes, keyInfo.getPurposes()); in testGenerateHonorsRequestedAuthorizations()
1510 private KeyGenParameterSpec.Builder getWorkingSpec(int purposes) { in getWorkingSpec() argument
1511 return new KeyGenParameterSpec.Builder(TEST_ALIAS_1, purposes); in getWorkingSpec()
DCipherTest.java1495 String transformation, int purposes, boolean ivProvidedWhenEncrypting) in importDefaultKatKey() argument
1498 transformation, purposes, ivProvidedWhenEncrypting); in importDefaultKatKey()
1503 String transformation, int purposes, boolean ivProvidedWhenEncrypting) in importKatKeys() argument
1506 transformation, purposes, ivProvidedWhenEncrypting); in importKatKeys()