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.java2494 for (int keySizeBytes = 0; keySizeBytes <= 512 / 8; keySizeBytes++) { in testKeyStore_ImportSupportedSizes_AES()
2495 int keySizeBits = keySizeBytes * 8; in testKeyStore_ImportSupportedSizes_AES()
2498 new TransparentSecretKey(new byte[keySizeBytes], "AES")); in testKeyStore_ImportSupportedSizes_AES()
2530 for (int keySizeBytes = 8; keySizeBytes <= 1024 / 8; keySizeBytes++) { in testKeyStore_ImportSupportedSizes_HMAC()
2533 new TransparentSecretKey(new byte[keySizeBytes], algorithm)); in testKeyStore_ImportSupportedSizes_HMAC()
2534 if (keySizeBytes > 0) { in testKeyStore_ImportSupportedSizes_HMAC()
2538 assertEquals(keySizeBytes * 8, TestUtils.getKeyInfo(key).getKeySize()); in testKeyStore_ImportSupportedSizes_HMAC()
2549 "Failed for " + algorithm + " with key size " + (keySizeBytes * 8), e); in testKeyStore_ImportSupportedSizes_HMAC()
DTestUtils.java777 int keySizeBytes = ((RSAKey) key).getModulus().bitLength() / 8; in isKeyLongEnoughForSignatureAlgorithm() local
778 return keySizeBytes >= minKeySizeBytes; in isKeyLongEnoughForSignatureAlgorithm()