Home
last modified time | relevance | path

Searched refs:SecureRandom (Results 1 – 25 of 121) sorted by relevance

12345

/external/apache-harmony/security/src/test/api/java.injected/java/security/
DSecureRandomTest.java57 SecureRandom sr = new SecureRandom(); in testNext()
67 SecureRandom sr = new SecureRandom(); in testSetSeedlong()
76 SecureRandom sr = new SecureRandom(); in testNextBytes()
89 SecureRandom sr = new SecureRandom(); in testSecureRandom()
101 new SecureRandom(b); in testSecureRandombyteArray()
111 SecureRandom sr = null; in testGetInstanceString()
113 sr = SecureRandom.getInstance("someRandom"); in testGetInstanceString()
126 SecureRandom sr = SecureRandom.getInstance("someRandom", "SRProvider"); in testGetInstanceStringString()
137 SecureRandom sr = SecureRandom.getInstance("someRandom", p); in testGetInstanceStringProvider()
148 SecureRandom sr = new SecureRandom(); in testSetSeedbyteArray()
[all …]
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/
DSecureRandom_ImplTest.java26 import java.security.SecureRandom;
69 SecureRandom sr = new SecureRandom(); in testSetSeedlong()
76 SecureRandom sr = new SecureRandom(); in testNextBytes()
93 SecureRandom.getInstance("SHA1PRNG"); in testGetInstanceString()
100 assertNull("Non null provider", new SecureRandom().getProvider()); in testGetProvider()
105 SecureRandom sr = new SecureRandom(); in testGetAlgorithm()
117 SecureRandom sr = new SecureRandom(); in testSetSeedbyteArray()
133 byte[] seed = SecureRandom.getSeed(5); in testGetSeed()
134 new SecureRandom(seed).nextBytes(new byte[20]); in testGetSeed()
138 SecureRandom sr = new SecureRandom(); in testGenerateSeed()
[all …]
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/
DSecureRandom2Test.java23 import java.security.SecureRandom;
41 new SecureRandom(); in test_Constructor()
49 new SecureRandom(SEED_BYTES); in test_Constructor$B()
57 byte[] seed = new SecureRandom().generateSeed(SEED_SIZE); in test_generateSeedI()
68 SecureRandom.getInstance("SHA1PRNG"); in test_getInstanceLjava_lang_String()
87 SecureRandom in test_getInstanceLjava_lang_StringLjava_lang_String()
105 byte[] seed = SecureRandom.getSeed(SEED_SIZE); in test_getSeedI()
115 new SecureRandom().nextBytes(bytes); in test_nextBytes$B()
123 new SecureRandom().setSeed(SEED_BYTES); in test_setSeed$B()
131 new SecureRandom().setSeed(SEED_VALUE); in test_setSeedJ()
[all …]
DKeyPairGenerator2Test.java91 keyPairGen.initialize(pp, new SecureRandom()); in checkResult()
95 keyPairGen.initialize(1000, new SecureRandom()); in checkResult()
97 keyPairGen.initialize(-1024, new SecureRandom()); in checkResult()
115 keyPairGen.initialize(pp, new SecureRandom()); in checkResult()
119 keyPairGen.initialize(1000, new SecureRandom()); in checkResult()
121 keyPairGen.initialize(63, new SecureRandom()); in checkResult()
130 keyPairGen.initialize(pp, new SecureRandom()); in checkResult()
132 keyPairGen.initialize(1000, new SecureRandom()); in checkResult()
144 keyPairGen.initialize(pp, new SecureRandom()); in checkResult()
145 keyPairGen.initialize(101, new SecureRandom()); in checkResult()
[all …]
/external/bouncycastle/src/main/java/org/bouncycastle/jce/provider/
DJDKKeyPairGenerator.java47 import java.security.SecureRandom;
64 public abstract void initialize(int strength, SecureRandom random); in initialize()
83 new SecureRandom(), 2048, defaultTests); in RSA()
89 SecureRandom random) in initialize()
99 SecureRandom random) in initialize()
135 SecureRandom random = new SecureRandom();
145 SecureRandom random) in initialize()
153 SecureRandom random) in initialize()
212 SecureRandom random = new SecureRandom();
222 SecureRandom random) in initialize()
[all …]
DJDKAlgorithmParameterGenerator.java7 import java.security.SecureRandom;
36 protected SecureRandom random;
41 SecureRandom random) in engineInit()
54 SecureRandom random) in engineInit()
78 pGen.init(strength, 20, new SecureRandom()); in engineGenerateParameters()
104 SecureRandom random) in engineInit()
117 SecureRandom random) in engineInit()
133 pGen.init(strength, 20, new SecureRandom()); in engineGenerateParameters()
DJCEKeyGenerator.java5 import java.security.SecureRandom;
38 SecureRandom random) in engineInit()
45 SecureRandom random) in engineInit()
56 SecureRandom random) in engineInit()
62 random = new SecureRandom(); in engineInit()
78 engine.init(new KeyGenerationParameters(new SecureRandom(), defaultKeySize)); in engineGenerateKey()
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/provider/crypto/
DSHA1PRNG_SecureRandomTest.java22 import java.security.SecureRandom;
39 private static SecureRandom sr; // fields used by tests
40 private static SecureRandom sr2; //
47 sr = SecureRandom.getInstance(algorithm, provider); in setUp()
48 sr2 = SecureRandom.getInstance(algorithm, provider); in setUp()
194 SecureRandom sr1; // these are needed to test new SecureRandom objects in loop in testNextBytesbyteArray03()
195 SecureRandom sr2; // in testNextBytesbyteArray03()
202 sr1 = SecureRandom.getInstance(algorithm, provider); in testNextBytesbyteArray03()
203 sr2 = SecureRandom.getInstance(algorithm, provider); in testNextBytesbyteArray03()
247 SecureRandom sr1; // these are needed to test new SecureRandom objects in loop in testNextBytesbyteArray04()
[all …]
/external/bouncycastle/src/main/java/org/bouncycastle/crypto/params/
DParametersWithRandom.java5 import java.security.SecureRandom;
10 private SecureRandom random;
15 SecureRandom random) in ParametersWithRandom()
24 this(parameters, new SecureRandom()); in ParametersWithRandom()
27 public SecureRandom getRandom() in getRandom()
/external/apache-harmony/crypto/src/test/api/java.injected/javax/crypto/
DKeyGeneratorSpiTest.java27 import java.security.SecureRandom;
59 kgSpi.engineInit(77, new SecureRandom()); in testKeyGeneratorSpi01()
64 kgSpi.engineInit(new SecureRandom()); in testKeyGeneratorSpi01()
70 kgSpi.engineInit(aps, new SecureRandom()); in testKeyGeneratorSpi01()
75 kgSpi.engineInit(aps, new SecureRandom()); in testKeyGeneratorSpi01()
/external/apache-harmony/crypto/src/test/impl/java/org/apache/harmony/crypto/tests/javax/crypto/
DCipher_Impl1Test.java22 import java.security.SecureRandom;
37 kg.init(keyLen, new SecureRandom()); in kg.init() argument
56 SecureRandom sr = new SecureRandom(); in test_getIV()
84 SecureRandom sr = new SecureRandom(); in test_getParameters()
DKeyGenerator_ImplTest.java29 import java.security.SecureRandom;
87 keyGen.init(0, new SecureRandom()); in checkResult()
92 keyGen.init(77, new SecureRandom()); in checkResult()
96 keyGen.init(78, new SecureRandom()); in checkResult()
98 keyGen.init(new SecureRandom()); in checkResult()
104 keyGen.init(paramsNull, new SecureRandom()); in checkResult()
109 keyGen.init(params, new SecureRandom()); in checkResult()
/external/bouncycastle/src/main/java/org/bouncycastle/crypto/
DKeyGenerationParameters.java3 import java.security.SecureRandom;
10 private SecureRandom random;
21 SecureRandom random, in KeyGenerationParameters()
34 public SecureRandom getRandom() in getRandom()
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/provider/crypto/serialization/
DSHA1PRNG_SecureRandomTest.java31 import java.security.SecureRandom;
71 SecureRandom sr; in getData()
77 sr = SecureRandom.getInstance(algorithm, provider); in getData()
111 private void testingSame(SecureRandom ref, SecureRandom test) { in testingSame()
143 private void testingNotSame(SecureRandom ref, SecureRandom test) { in testingNotSame()
198 SecureRandom ref = (SecureRandom) reference;
199 SecureRandom tst = (SecureRandom) test;
/external/apache-harmony/crypto/src/test/support/common/java/org/apache/harmony/crypto/tests/support/
DMyKeyGeneratorSpi.java25 import java.security.SecureRandom;
45 protected void engineInit(AlgorithmParameterSpec params, SecureRandom random) in engineInit()
53 protected void engineInit(int keysize, SecureRandom random) { in engineInit()
60 protected void engineInit(SecureRandom random) { in engineInit()
DMyCipher.java28 import java.security.SecureRandom;
81 protected void engineInit(int opmode, Key key, SecureRandom random) in engineInit()
87 AlgorithmParameterSpec params, SecureRandom random) in engineInit()
93 SecureRandom random) throws InvalidKeyException, in engineInit()
/external/bouncycastle/src/main/java/org/bouncycastle/crypto/paddings/
DISO10126d2Padding.java3 import java.security.SecureRandom;
13 SecureRandom random;
20 public void init(SecureRandom random) in init()
29 this.random = new SecureRandom(); in init()
DX923Padding.java3 import java.security.SecureRandom;
14 SecureRandom random = null;
21 public void init(SecureRandom random) in init()
/external/apache-harmony/crypto/src/test/api/java/org/apache/harmony/crypto/tests/javax/crypto/
DKeyAgreementTest.java32 import java.security.SecureRandom;
378 SecureRandom random = null; in testInit01()
389 kAgs[i].init(publKey, new SecureRandom()); in testInit01()
409 kAgs[i].init(publKey, dhPs, new SecureRandom()); in testInit01()
431 SecureRandom random = null; in testInit02()
442 kAgs[i].init(privKey, dsa, new SecureRandom()); in testInit02()
473 SecureRandom randomNull = null; in testInit03()
474 SecureRandom random = new SecureRandom(); in testInit03()
521 SecureRandom randomNull = null; in testInit04()
522 SecureRandom random = new SecureRandom(); in testInit04()
DCipherTest.java28 import java.security.SecureRandom;
53 kg.init(keyLen, new SecureRandom()); in kg.init() argument
172 SecureRandom sr = new SecureRandom(); in test_getOutputSizeI()
199 SecureRandom sr = new SecureRandom(); in test_initILjava_security_KeyLjava_security_SecureRandom()
210 SecureRandom sr = new SecureRandom(); in test_initILjava_security_KeyLjava_security_spec_AlgorithmParameterSpec()
236 SecureRandom sr = new SecureRandom(); in test_initILjava_security_KeyLjava_security_spec_AlgorithmParameterSpecLjava_security_SecureRandom()
/external/apache-harmony/security/src/test/support/common/java/org/apache/harmony/security/tests/support/
DMyKeyPairGenerator1.java30 import java.security.SecureRandom;
41 public SecureRandom secureRandom;
61 public void initialize(int keysize, SecureRandom random) { in initialize()
81 public void initialize(AlgorithmParameterSpec param, SecureRandom random) in initialize()
DMyAlgorithmParameterGeneratorSpi.java26 import java.security.SecureRandom;
38 protected void engineInit(int keysize, SecureRandom random) { in engineInit()
45 SecureRandom random) { in engineInit()
DMyKeyPairGenerator2.java27 import java.security.SecureRandom;
37 SecureRandom secureRandom;
55 public void initialize(int keysize, SecureRandom random) { in initialize()
DMyKeyPairGeneratorSpi.java28 import java.security.SecureRandom;
38 public void initialize(int keysize, SecureRandom random) { in initialize()
52 public void initialize(AlgorithmParameterSpec params, SecureRandom random) in initialize()
/external/bouncycastle/src/main/java/org/bouncycastle/crypto/generators/
DDHParametersGenerator.java6 import java.security.SecureRandom;
12 private SecureRandom random;
26 SecureRandom random) in init()

12345