/libcore/support/src/test/java/tests/security/ |
D | AlgorithmParameterSymmetricHelper.java | 36 private final int keySize; field in AlgorithmParameterSymmetricHelper 39 public AlgorithmParameterSymmetricHelper(String algorithmName, int keySize) { in AlgorithmParameterSymmetricHelper() argument 41 this.keySize = keySize; in AlgorithmParameterSymmetricHelper() 44 public AlgorithmParameterSymmetricHelper(String algorithmName, String blockmode, int keySize) { in AlgorithmParameterSymmetricHelper() argument 45 this(algorithmName, keySize); in AlgorithmParameterSymmetricHelper() 52 generator.init(keySize); in test()
|
/libcore/luni/src/test/java/libcore/javax/crypto/ |
D | KeyGeneratorTest.java | 83 private static void putKeySize(String algorithm, int keySize) { in putKeySize() argument 90 keySizes.add(keySize); in putKeySize() 149 for (int keySize : keySizes) { in test_KeyGenerator() 150 kg.init(keySize); in test_KeyGenerator() 153 kg.init(keySize, (SecureRandom) null); in test_KeyGenerator() 156 kg.init(keySize, new SecureRandom()); in test_KeyGenerator()
|
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/ |
D | MyKeyPairGenerator2.java | 36 int keySize; field in MyKeyPairGenerator2 60 keySize = keysize; in initialize()
|
D | MyKeyPairGenerator1.java | 40 public int keySize; field in MyKeyPairGenerator1 69 keySize = keysize; in initialize()
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | CipherBenchmark.java | 74 @Param({"128", "192", "256"}) private int keySize; field in CipherBenchmark 104 key = KEY_SIZES.get(keySize); in setUp() 107 generator.init(keySize); in setUp() 109 KEY_SIZES.put(keySize, key); in setUp()
|
/libcore/ojluni/src/main/java/sun/security/ssl/ |
D | SignatureAndHashAlgorithm.java | 282 int keySize = KeyUtil.getKeySize(signingKey); in getPreferableAlgorithm() local 283 if (keySize >= 768) { in getPreferableAlgorithm() 285 } else if ((keySize >= 512) && (keySize < 768)) { in getPreferableAlgorithm() 287 } else if ((keySize > 0) && (keySize < 512)) { in getPreferableAlgorithm()
|
D | RSAClientKeyExchange.java | 196 int keySize = KeyUtil.getKeySize(secretKey); in polishPreMasterSecretKey() local 197 if (keySize > 0 && keySize != 384) { // 384 = 48 * 8 in polishPreMasterSecretKey() 201 (keySize/8)); in polishPreMasterSecretKey()
|
D | CipherSuite.java | 411 final int keySize; field in CipherSuite.BulkCipher 426 BulkCipher(String transformation, int keySize, in BulkCipher() argument 433 this.description = this.algorithm + "/" + (keySize << 3); in BulkCipher() 434 this.keySize = keySize; in BulkCipher() 442 BulkCipher(String transformation, int keySize, in BulkCipher() argument 449 this.description = this.algorithm + "/" + (keySize << 3); in BulkCipher() 450 this.keySize = keySize; in BulkCipher() 454 this.expandedKeySize = keySize; in BulkCipher()
|
D | Handshaker.java | 1182 cipher.algorithm, cipher.keySize, expandedKeySize, in calculateConnectionKeys()
|
/libcore/luni/src/main/java/java/security/ |
D | security.properties | 64 jdk.certpath.disabledAlgorithms=MD2, MD4, RSA keySize < 1024, DSA keySize < 1024, EC keySize < 160
|
/libcore/luni/src/test/java/libcore/java/security/ |
D | KeyPairGeneratorTest.java | 184 private static void putKeySize(String algorithm, int keySize) { in putKeySize() argument 191 keySizes.add(keySize); in putKeySize() 241 for (int keySize : keySizes) { in test_KeyPairGenerator() 242 kpg.initialize(keySize); in test_KeyPairGenerator() 246 kpg.initialize(keySize, (SecureRandom) null); in test_KeyPairGenerator() 250 kpg.initialize(keySize, new SecureRandom()); in test_KeyPairGenerator()
|
/libcore/support/src/test/java/libcore/java/security/ |
D | TestKeyStore.java | 524 int keySize = -1; in createKeys() local 527 keySize = RSA_KEY_SIZE_BITS; in createKeys() 532 keySize = DSA_KEY_SIZE_BITS; in createKeys() 537 keySize = EC_KEY_SIZE_BITS; in createKeys() 539 keySize = EC_KEY_SIZE_BITS; in createKeys() 548 } else if (keySize != -1) { in createKeys() 549 kpg.initialize(keySize); in createKeys()
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
D | KeyPairGenerator1Test.java | 420 ((MyKeyPairGenerator1) mKPG).keySize); in testKeyPairGenerator12()
|