Searched refs:maxUsageCount (Results 1 – 6 of 6) sorted by relevance
/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | KeyInfoTest.java | 132 int maxUsageCount = 1; in testLimitedUseKey() local 148 .setMaxUsageCount(maxUsageCount) in testLimitedUseKey() 157 assertEquals(maxUsageCount, remainingUsageCount); in testLimitedUseKey()
|
D | KeyProtectionTest.java | 82 int maxUsageCount = 1; in testSettersReflectedInGetters() local 101 .setMaxUsageCount(maxUsageCount) in testSettersReflectedInGetters() 136 assertEquals(spec.getMaxUsageCount(), maxUsageCount); in testSettersReflectedInGetters() local
|
D | SignatureTest.java | 459 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()
|
D | KeyGenParameterSpecTest.java | 110 int maxUsageCount = 1; in testSettersReflectedInGetters() local 142 .setMaxUsageCount(maxUsageCount); in testSettersReflectedInGetters() 185 assertEquals(maxUsageCount, spec.getMaxUsageCount()); in testSettersReflectedInGetters()
|
D | KeyGeneratorTest.java | 784 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/ |
D | TestUtils.java | 1149 String signatureAlgorithm, int maxUsageCount) { in getMinimalWorkingImportParametersWithLimitedUsageForSigningingWith() argument 1155 .setMaxUsageCount(maxUsageCount) in getMinimalWorkingImportParametersWithLimitedUsageForSigningingWith() 1162 .setMaxUsageCount(maxUsageCount) in getMinimalWorkingImportParametersWithLimitedUsageForSigningingWith()
|