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.java2479 for (int keySizeBytes = 0; keySizeBytes <= 512 / 8; keySizeBytes++) { in testKeyStore_ImportSupportedSizes_AES()
2480 int keySizeBits = keySizeBytes * 8; in testKeyStore_ImportSupportedSizes_AES()
2483 new TransparentSecretKey(new byte[keySizeBytes], "AES")); in testKeyStore_ImportSupportedSizes_AES()
2515 for (int keySizeBytes = 0; keySizeBytes <= 1024 / 8; keySizeBytes++) { in testKeyStore_ImportSupportedSizes_HMAC()
2518 new TransparentSecretKey(new byte[keySizeBytes], algorithm)); in testKeyStore_ImportSupportedSizes_HMAC()
2519 if (keySizeBytes > 0) { in testKeyStore_ImportSupportedSizes_HMAC()
2523 assertEquals(keySizeBytes * 8, TestUtils.getKeyInfo(key).getKeySize()); in testKeyStore_ImportSupportedSizes_HMAC()
2534 "Failed for " + algorithm + " with key size " + (keySizeBytes * 8), e); in testKeyStore_ImportSupportedSizes_HMAC()
DTestUtils.java754 int keySizeBytes = ((RSAKey) key).getModulus().bitLength() / 8; in isKeyLongEnoughForSignatureAlgorithm() local
755 return keySizeBytes >= minKeySizeBytes; in isKeyLongEnoughForSignatureAlgorithm()