Home
last modified time | relevance | path

Searched refs:keySizeBytes (Results 1 – 2 of 2) sorted by relevance

/cts/tests/tests/keystore/src/android/keystore/cts/
DAndroidKeyStoreTest.java2457 for (int keySizeBytes = 0; keySizeBytes <= 512 / 8; keySizeBytes++) { in testKeyStore_ImportSupportedSizes_AES()
2458 int keySizeBits = keySizeBytes * 8; in testKeyStore_ImportSupportedSizes_AES()
2461 new TransparentSecretKey(new byte[keySizeBytes], "AES")); in testKeyStore_ImportSupportedSizes_AES()
2493 for (int keySizeBytes = 8; keySizeBytes <= 1024 / 8; keySizeBytes++) { in testKeyStore_ImportSupportedSizes_HMAC()
2496 new TransparentSecretKey(new byte[keySizeBytes], algorithm)); in testKeyStore_ImportSupportedSizes_HMAC()
2497 if (keySizeBytes > 0) { in testKeyStore_ImportSupportedSizes_HMAC()
2501 assertEquals(keySizeBytes * 8, TestUtils.getKeyInfo(key).getKeySize()); in testKeyStore_ImportSupportedSizes_HMAC()
2512 "Failed for " + algorithm + " with key size " + (keySizeBytes * 8), e); in testKeyStore_ImportSupportedSizes_HMAC()
DTestUtils.java818 int keySizeBytes = keySizeBits / 8; in isKeyLongEnoughForSignatureAlgorithm() local
819 return keySizeBytes >= minKeySizeBytes; in isKeyLongEnoughForSignatureAlgorithm()