/libcore/luni/src/test/java/tests/security/interfaces/ |
D | DSAKeyPairGeneratorTest.java | 49 SecureRandom random = null; in test_DSAKeyPairGenerator01() local 52 random = SecureRandom.getInstance("SHA1PRNG"); in test_DSAKeyPairGenerator01() 58 dsa.initialize(dsaParams, random); in test_DSAKeyPairGenerator01() 72 dsa.initialize(null, random); in test_DSAKeyPairGenerator01() 88 SecureRandom random = null; in test_DSAKeyPairGenerator02() local 91 random = SecureRandom.getInstance("SHA1PRNG"); in test_DSAKeyPairGenerator02() 98 dsa.initialize(520, false, random); in test_DSAKeyPairGenerator02() 112 dsa.initialize(invalidLen[i], true, random); in test_DSAKeyPairGenerator02() 127 dsa.initialize(520, true, random); in test_DSAKeyPairGenerator02() 134 dsa.initialize(520, false, random); in test_DSAKeyPairGenerator02()
|
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/interfaces/ |
D | DSAKeyPairGeneratorImpl.java | 46 public void initialize(DSAParams params, SecureRandom random) in initialize() argument 48 if (random == null) { in initialize() 54 secureRandom = random; in initialize() 59 public void initialize(int modlen, boolean genParams, SecureRandom random) in initialize() argument 76 if (random == null) { in initialize() 82 secureRandom = random; in initialize()
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
D | KeyGeneratorSpiTest.java | 48 protected void engineInit(SecureRandom random) { in engineInit() argument 49 super.engineInit(random); in engineInit() 53 protected void engineInit(AlgorithmParameterSpec params, SecureRandom random) in engineInit() argument 55 super.engineInit(params, random); in engineInit() 59 protected void engineInit(int keysize, SecureRandom random) { in engineInit() argument 60 super.engineInit(keysize, random); in engineInit()
|
D | KeyAgreementSpiTest.java | 71 protected void engineInit(Key key, SecureRandom random) throws InvalidKeyException { in engineInit() argument 72 super.engineInit(key, random); in engineInit() 76 protected void engineInit(Key key, AlgorithmParameterSpec params, SecureRandom random) in engineInit() argument 78 super.engineInit(key, params, random); in engineInit()
|
D | CipherSpiTest.java | 83 protected void engineInit(int opmode, Key key, SecureRandom random) in engineInit() argument 85 super.engineInit(opmode, key, random); in engineInit() 90 … SecureRandom random) throws InvalidKeyException, InvalidAlgorithmParameterException { in engineInit() argument 91 super.engineInit(opmode, key, params, random); in engineInit() 96 … SecureRandom random) throws InvalidKeyException, InvalidAlgorithmParameterException { in engineInit() argument 97 super.engineInit(opmode, key, params, random); in engineInit() 340 protected void engineInit(int opmode, Key key, SecureRandom random) in engineInit() argument 345 AlgorithmParameterSpec params, SecureRandom random) in engineInit() argument 350 SecureRandom random) throws InvalidKeyException, in engineInit() argument
|
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/ |
D | MyKeyPairGenerator1.java | 62 public void initialize(int keysize, SecureRandom random) { in initialize() argument 66 if (random == null) { in initialize() 70 secureRandom = random; in initialize() 82 public void initialize(AlgorithmParameterSpec param, SecureRandom random) in initialize() argument 84 if (random == null) { in initialize() 91 secureRandom = random; in initialize()
|
D | MyKeyPairGeneratorSpi.java | 39 public void initialize(int keysize, SecureRandom random) { in initialize() argument 44 if (random == null) { in initialize() 53 public void initialize(AlgorithmParameterSpec params, SecureRandom random) in initialize() argument 55 if (random == null) { in initialize()
|
D | MyAlgorithmParameterGeneratorSpi.java | 39 public void engineInit(int keysize, SecureRandom random) { in engineInit() argument 46 SecureRandom random) { in engineInit() argument 47 if (random == null) { in engineInit()
|
D | MyKeyPairGenerator2.java | 56 public void initialize(int keysize, SecureRandom random) { in initialize() argument 61 secureRandom = random; in initialize()
|
/libcore/luni/src/main/java/javax/crypto/ |
D | KeyGeneratorSpi.java | 58 SecureRandom random) throws InvalidAlgorithmParameterException; in engineInit() argument 69 protected abstract void engineInit(int keysize, SecureRandom random); in engineInit() argument 78 protected abstract void engineInit(SecureRandom random); in engineInit() argument
|
D | KeyGenerator.java | 204 public final void init(AlgorithmParameterSpec params, SecureRandom random) in init() argument 206 spiImpl.engineInit(params, random); in init() 229 public final void init(int keysize, SecureRandom random) { in init() argument 230 spiImpl.engineInit(keysize, random); in init() 240 public final void init(SecureRandom random) { in init() argument 241 spiImpl.engineInit(random); in init()
|
D | KeyAgreementSpi.java | 118 protected abstract void engineInit(Key key, SecureRandom random) in engineInit() argument 139 SecureRandom random) throws InvalidKeyException, in engineInit() argument
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
D | SecureRandom2Test.java | 49 SecureRandom random = SecureRandom.getInstance("SHA1PRNG"); in testGetProvider() local 50 assertNotNull(random.getProvider()); in testGetProvider() 277 int random = mySecureRandom.getNext(numBits); in test_nextJ() local 278 assertEquals(numBits, Integer.bitCount(random)); in test_nextJ() 281 random = mySecureRandom.getNext(numBits); in test_nextJ() 282 assertEquals(numBits, Integer.bitCount(random)); in test_nextJ() 285 random = mySecureRandom.getNext(numBits); in test_nextJ() 286 assertEquals(32, Integer.bitCount(random)); in test_nextJ() 289 random = mySecureRandom.getNext(numBits); in test_nextJ() 290 assertEquals(0, Integer.bitCount(random)); in test_nextJ()
|
D | KeyPairGenerator1Test.java | 352 SecureRandom random = new SecureRandom(); in testKeyPairGenerator11() local 360 kpg[i].initialize(keys[j], random); in testKeyPairGenerator11() 367 kpg[i].initialize(aps, random); in testKeyPairGenerator11() 387 SecureRandom random = new SecureRandom(); in testKeyPairGenerator12() local 404 mKPG.initialize(keys[i], random); in testKeyPairGenerator12() 416 mKPG.initialize(100, random); in testKeyPairGenerator12() 417 assertEquals("Incorrect random", random, in testKeyPairGenerator12() 422 mKPG.initialize(null, random); in testKeyPairGenerator12() 437 mKPG.initialize(aps, random); in testKeyPairGenerator12() 438 assertEquals("Incorrect random", random, in testKeyPairGenerator12() [all …]
|
/libcore/luni/src/main/java/java/security/ |
D | KeyPairGenerator.java | 230 public void initialize(int keysize, SecureRandom random) { in initialize() argument 245 public void initialize(AlgorithmParameterSpec param, SecureRandom random) in initialize() argument 268 public void initialize(int keysize, SecureRandom random) { in initialize() argument 269 spiImpl.initialize(keysize, random); in initialize() 282 public void initialize(AlgorithmParameterSpec param, SecureRandom random) in initialize() argument 284 spiImpl.initialize(param, random); in initialize()
|
D | AlgorithmParameterGeneratorSpi.java | 46 protected abstract void engineInit(int size, SecureRandom random); in engineInit() argument 60 SecureRandom random) throws InvalidAlgorithmParameterException; in engineInit() argument
|
D | KeyPairGeneratorSpi.java | 52 public abstract void initialize(int keysize, SecureRandom random); in initialize() argument 65 public void initialize(AlgorithmParameterSpec params, SecureRandom random) in initialize() argument
|
D | AlgorithmParameterGenerator.java | 193 public final void init(int size, SecureRandom random) { in init() argument 194 spiImpl.engineInit(size, random); in init() 224 SecureRandom random) throws InvalidAlgorithmParameterException { in init() argument 225 spiImpl.engineInit(genParamSpec, random); in init()
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/support/ |
D | MyKeyGeneratorSpi.java | 46 protected void engineInit(AlgorithmParameterSpec params, SecureRandom random) in engineInit() argument 54 protected void engineInit(int keysize, SecureRandom random) { in engineInit() argument 61 protected void engineInit(SecureRandom random) { in engineInit() argument
|
D | MyCipher.java | 83 protected void engineInit(int opmode, Key key, SecureRandom random) in engineInit() argument 89 AlgorithmParameterSpec params, SecureRandom random) in engineInit() argument 95 SecureRandom random) throws InvalidKeyException, in engineInit() argument
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/ |
D | KeyGeneratorThread.java | 53 SecureRandom random = new SecureRandom(); in test() local 54 kg.init(random); in test() 58 random = new SecureRandom(); in test() 59 kg.init(random); in test()
|
/libcore/luni/src/main/java/java/security/interfaces/ |
D | DSAKeyPairGenerator.java | 40 public void initialize(DSAParams params, SecureRandom random) in initialize() argument 65 public void initialize(int modlen, boolean genParams, SecureRandom random) in initialize() argument
|
/libcore/luni/src/test/java/tests/security/ |
D | SecureRandomTest.java | 64 private byte[] getRandomBytes(SecureRandom random) { in getRandomBytes() argument 67 random.setSeed(System.currentTimeMillis()+counter); in getRandomBytes() 70 random.nextBytes(randomData); in getRandomBytes()
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | PriorityQueueBenchmark.java | 34 private Random random = new Random(189279387L); field in PriorityQueueBenchmark 48 Collections.shuffle(allElements, random); in setUp() 65 Collections.shuffle(seekElements, random); in setUp()
|
/libcore/luni/src/test/java/libcore/javax/crypto/ |
D | MockCipherSpi.java | 97 protected void engineInit(int opmode, Key key, SecureRandom random) throws InvalidKeyException { in engineInit() argument 103 SecureRandom random) throws InvalidKeyException, InvalidAlgorithmParameterException { in engineInit() argument 108 protected void engineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random) in engineInit() argument
|