Home
last modified time | relevance | path

Searched refs:keySize (Results 1 – 13 of 13) sorted by relevance

/libcore/support/src/test/java/tests/security/
DAlgorithmParameterSymmetricHelper.java36 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/
DKeyGeneratorTest.java83 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/
DMyKeyPairGenerator2.java36 int keySize; field in MyKeyPairGenerator2
60 keySize = keysize; in initialize()
DMyKeyPairGenerator1.java40 public int keySize; field in MyKeyPairGenerator1
69 keySize = keysize; in initialize()
/libcore/benchmarks/src/benchmarks/regression/
DCipherBenchmark.java74 @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/
DSignatureAndHashAlgorithm.java282 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()
DRSAClientKeyExchange.java196 int keySize = KeyUtil.getKeySize(secretKey); in polishPreMasterSecretKey() local
197 if (keySize > 0 && keySize != 384) { // 384 = 48 * 8 in polishPreMasterSecretKey()
201 (keySize/8)); in polishPreMasterSecretKey()
DCipherSuite.java411 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()
DHandshaker.java1182 cipher.algorithm, cipher.keySize, expandedKeySize, in calculateConnectionKeys()
/libcore/luni/src/main/java/java/security/
Dsecurity.properties64 jdk.certpath.disabledAlgorithms=MD2, MD4, RSA keySize < 1024, DSA keySize < 1024, EC keySize < 160
/libcore/luni/src/test/java/libcore/java/security/
DKeyPairGeneratorTest.java184 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/
DTestKeyStore.java524 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/
DKeyPairGenerator1Test.java420 ((MyKeyPairGenerator1) mKPG).keySize); in testKeyPairGenerator12()