Searched refs:getKeyInfo (Results 1 – 7 of 7) sorted by relevance
/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | KeyGeneratorTest.java | 276 assertEquals(expectedSizeBits, TestUtils.getKeyInfo(key).getKeySize()); in testDefaultKeySize() 317 assertEquals(i, TestUtils.getKeyInfo(key).getKeySize()); in testAesKeySupportedSizesHelper() 362 assertEquals(i, TestUtils.getKeyInfo(key).getKeySize()); in testDESKeySupportedSizes() 424 assertEquals(i, TestUtils.getKeyInfo(key).getKeySize()); in testHmacKeySupportedSizesHelper() 475 Arrays.asList(TestUtils.getKeyInfo(key).getDigests()), digest); in testHmacKeyOnlyOneDigestCanBeAuthorizedHelper() 484 Arrays.asList(TestUtils.getKeyInfo(key).getDigests()), digest); in testHmacKeyOnlyOneDigestCanBeAuthorizedHelper() 754 KeyInfo keyInfo = TestUtils.getKeyInfo(key); in testGenerateHonorsRequestedAuthorizationsHelper() 792 assertEquals(expectedSizeBits, TestUtils.getKeyInfo(key).getKeySize()); in testLimitedUseKey() 793 assertEquals(maxUsageCount, TestUtils.getKeyInfo(key).getRemainingUsageCount()); in testLimitedUseKey()
|
D | KeyPairGeneratorTest.java | 269 TestUtils.getKeyInfo(keyPair.getPrivate()).getKeySize()); in testDefaultKeySize() 392 KeyInfo keyInfo = TestUtils.getKeyInfo(keyPair.getPrivate()); in testGenerateHonorsRequestedAuthorizationsHelper() 459 KeyInfo keyInfo = TestUtils.getKeyInfo(keyPair.getPrivate()); in testGenerate_EC_LegacySpec() 506 keyInfo = TestUtils.getKeyInfo(keyPair.getPrivate()); in testGenerate_EC_LegacySpec() 552 keyInfo = TestUtils.getKeyInfo(keyPair.getPrivate()); in testGenerate_EC_LegacySpec() 600 KeyInfo keyInfo = TestUtils.getKeyInfo(keyPair.getPrivate()); in testGenerate_RSA_LegacySpec() 1033 KeyInfo keyInfo = TestUtils.getKeyInfo(keyPair.getPrivate()); in testGenerate_EC_ModernSpec_DefaultsHelper() 1077 KeyInfo keyInfo = TestUtils.getKeyInfo(keyPair.getPrivate()); in testGenerate_RSA_ModernSpec_DefaultsHelper() 1132 KeyInfo keyInfo = TestUtils.getKeyInfo(keyPair.getPrivate()); in testGenerate_EC_ModernSpec_AsCustomAsPossible() 1203 KeyInfo keyInfo = TestUtils.getKeyInfo(keyPair.getPrivate()); in testGenerate_EC_ModernSpec_AsCustomAsPossibleStrongbox() [all …]
|
D | KeyInfoTest.java | 172 assertEquals(required, TestUtils.getKeyInfo(key).isUnlockedDeviceRequired()); in testUnlockedDeviceRequiredKey() 181 TestUtils.getKeyInfo(importedKey.getKeystoreBackedEncryptionKey()) in testUnlockedDeviceRequiredKey()
|
D | SecretKeyFactoryTest.java | 251 KeyInfo keyInfo = TestUtils.getKeyInfo(keystoreKey); in testGenerateSecretRejectsKeyInfo()
|
D | AndroidKeyStoreTest.java | 2463 Arrays.asList(TestUtils.getKeyInfo(key).getDigests()), digest); in testKeyStore_OnlyOneDigestCanBeAuthorized_HMAC() 2471 Arrays.asList(TestUtils.getKeyInfo(key).getDigests()), digest); in testKeyStore_OnlyOneDigestCanBeAuthorized_HMAC() 2524 assertEquals(keySizeBits, TestUtils.getKeyInfo(key).getKeySize()); in testKeyStore_ImportSupportedSizes_AES() 2560 assertEquals(keySizeBytes * 8, TestUtils.getKeyInfo(key).getKeySize()); in testKeyStore_ImportSupportedSizes_HMAC()
|
D | KeyFactoryTest.java | 494 KeyInfo keyInfo = TestUtils.getKeyInfo(keyPair.getPrivate()); in testGeneratePrivateAndPublicRejectKeyInfo()
|
/cts/tests/tests/keystore/src/android/keystore/cts/util/ |
D | TestUtils.java | 468 …public static KeyInfo getKeyInfo(Key key) throws InvalidKeySpecException, NoSuchAlgorithmException, in getKeyInfo() method in TestUtils
|