Searched refs:keySizeBytes (Results 1 – 2 of 2) sorted by relevance
2469 for (int keySizeBytes = 0; keySizeBytes <= 512 / 8; keySizeBytes++) { in testKeyStore_ImportSupportedSizes_AES()2470 int keySizeBits = keySizeBytes * 8; in testKeyStore_ImportSupportedSizes_AES()2473 new TransparentSecretKey(new byte[keySizeBytes], "AES")); in testKeyStore_ImportSupportedSizes_AES()2505 for (int keySizeBytes = 0; keySizeBytes <= 1024 / 8; keySizeBytes++) { in testKeyStore_ImportSupportedSizes_HMAC()2508 new TransparentSecretKey(new byte[keySizeBytes], algorithm)); in testKeyStore_ImportSupportedSizes_HMAC()2509 if (keySizeBytes > 0) { in testKeyStore_ImportSupportedSizes_HMAC()2513 assertEquals(keySizeBytes * 8, TestUtils.getKeyInfo(key).getKeySize()); in testKeyStore_ImportSupportedSizes_HMAC()2524 "Failed for " + algorithm + " with key size " + (keySizeBytes * 8), e); in testKeyStore_ImportSupportedSizes_HMAC()
753 int keySizeBytes = ((RSAKey) key).getModulus().bitLength() / 8; in isKeyLongEnoughForSignatureAlgorithm() local754 return keySizeBytes >= minKeySizeBytes; in isKeyLongEnoughForSignatureAlgorithm()