Searched refs:keySizeBytes (Results 1 – 2 of 2) sorted by relevance
2457 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()
777 int keySizeBytes = ((RSAKey) key).getModulus().bitLength() / 8; in isKeyLongEnoughForSignatureAlgorithm() local778 return keySizeBytes >= minKeySizeBytes; in isKeyLongEnoughForSignatureAlgorithm()