Home
last modified time | relevance | path

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

/cts/tests/tests/keystore/src/android/keystore/cts/
DKeyInfoTest.java132 int maxUsageCount = 1; in testLimitedUseKey() local
148 .setMaxUsageCount(maxUsageCount) in testLimitedUseKey()
157 assertEquals(maxUsageCount, remainingUsageCount); in testLimitedUseKey()
DKeyProtectionTest.java82 int maxUsageCount = 1; in testSettersReflectedInGetters() local
101 .setMaxUsageCount(maxUsageCount) in testSettersReflectedInGetters()
136 assertEquals(spec.getMaxUsageCount(), maxUsageCount); in testSettersReflectedInGetters() local
DSignatureTest.java459 int maxUsageCount = 2; in testValidSignatureGeneratedForEmptyMessageByLimitedUseKey() local
461 …portedKey key : importLimitedUseKatKeyPairsForSigning(getContext(), sigAlgorithm, maxUsageCount)) { in testValidSignatureGeneratedForEmptyMessageByLimitedUseKey()
471 assertEquals(maxUsageCount, info.getRemainingUsageCount()); in testValidSignatureGeneratedForEmptyMessageByLimitedUseKey()
485 assertEquals(maxUsageCount, info.getRemainingUsageCount()); in testValidSignatureGeneratedForEmptyMessageByLimitedUseKey()
493 assertEquals(maxUsageCount - 1, info.getRemainingUsageCount()); in testValidSignatureGeneratedForEmptyMessageByLimitedUseKey()
1373 Context context, String signatureAlgorithm, int maxUsageCount) throws Exception { in importLimitedUseKatKeyPairsForSigning() argument
1377 signatureAlgorithm, maxUsageCount); in importLimitedUseKatKeyPairsForSigning()
DKeyGenParameterSpecTest.java110 int maxUsageCount = 1; in testSettersReflectedInGetters() local
142 .setMaxUsageCount(maxUsageCount); in testSettersReflectedInGetters()
185 assertEquals(maxUsageCount, spec.getMaxUsageCount()); in testSettersReflectedInGetters()
DKeyGeneratorTest.java784 int maxUsageCount = 1; in testLimitedUseKey() local
790 keyGenerator.init(getWorkingSpec().setMaxUsageCount(maxUsageCount).build()); in testLimitedUseKey()
793 assertEquals(maxUsageCount, TestUtils.getKeyInfo(key).getRemainingUsageCount()); in testLimitedUseKey()
/cts/tests/tests/keystore/src/android/keystore/cts/util/
DTestUtils.java1149 String signatureAlgorithm, int maxUsageCount) { in getMinimalWorkingImportParametersWithLimitedUsageForSigningingWith() argument
1155 .setMaxUsageCount(maxUsageCount) in getMinimalWorkingImportParametersWithLimitedUsageForSigningingWith()
1162 .setMaxUsageCount(maxUsageCount) in getMinimalWorkingImportParametersWithLimitedUsageForSigningingWith()