Home
last modified time | relevance | path

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

123456

/external/apache-harmony/security/src/test/api/java.injected/java/security/
DSecureRandomTest.java56 SecureRandom sr = new SecureRandom(); in testNext()
66 SecureRandom sr = new SecureRandom(); in testSetSeedlong()
75 SecureRandom sr = new SecureRandom(); in testNextBytes()
88 SecureRandom sr = new SecureRandom(); in testSecureRandom()
100 new SecureRandom(b); in testSecureRandombyteArray()
110 SecureRandom sr = null; in testGetInstanceString()
112 sr = SecureRandom.getInstance("someRandom"); in testGetInstanceString()
125 SecureRandom sr = SecureRandom.getInstance("someRandom", "SRProvider"); in testGetInstanceStringString()
136 SecureRandom sr = SecureRandom.getInstance("someRandom", p); in testGetInstanceStringProvider()
147 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;
67 SecureRandom sr = new SecureRandom(); in testSetSeedlong()
74 SecureRandom sr = new SecureRandom(); in testNextBytes()
91 SecureRandom.getInstance("SHA1PRNG"); in testGetInstanceString()
98 assertNull("Non null provider", new SecureRandom().getProvider()); in testGetProvider()
103 SecureRandom sr = new SecureRandom(); in testGetAlgorithm()
115 SecureRandom sr = new SecureRandom(); in testSetSeedbyteArray()
131 byte[] seed = SecureRandom.getSeed(5); in testGetSeed()
132 new SecureRandom(seed).nextBytes(new byte[20]); in testGetSeed()
136 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/bcprov/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()
DDSAParameterGenerationParameters.java3 import java.security.SecureRandom;
14 private final SecureRandom random;
28 SecureRandom random) in DSAParameterGenerationParameters()
46 SecureRandom random, in DSAParameterGenerationParameters()
71 public SecureRandom getRandom() in getRandom()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/symmetric/util/
DBaseKeyGenerator.java5 import java.security.SecureRandom;
37 SecureRandom random) in engineInit()
44 SecureRandom random) in engineInit()
55 SecureRandom random) in engineInit()
61 random = new SecureRandom(); in engineInit()
76 engine.init(new KeyGenerationParameters(new SecureRandom(), defaultKeySize)); in engineGenerateKey()
/external/apache-harmony/crypto/src/test/api/java.injected/javax/crypto/
DKeyGeneratorSpiTest.java26 import java.security.SecureRandom;
57 kgSpi.engineInit(77, new SecureRandom()); in testKeyGeneratorSpi01()
62 kgSpi.engineInit(new SecureRandom()); in testKeyGeneratorSpi01()
68 kgSpi.engineInit(aps, new SecureRandom()); in testKeyGeneratorSpi01()
73 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;
86 keyGen.init(0, new SecureRandom()); in checkResult()
91 keyGen.init(77, new SecureRandom()); in checkResult()
95 keyGen.init(78, new SecureRandom()); in checkResult()
97 keyGen.init(new SecureRandom()); in checkResult()
103 keyGen.init(paramsNull, new SecureRandom()); in checkResult()
108 keyGen.init(params, new SecureRandom()); in checkResult()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/rsa/
DKeyPairGeneratorSpi.java6 import java.security.SecureRandom;
37 new SecureRandom(), 2048, defaultTests); in KeyPairGeneratorSpi()
43 SecureRandom random) in initialize()
48 (random != null) ? random : new SecureRandom(), strength, defaultTests); in initialize()
56 SecureRandom random) in initialize()
69 (random != null) ? random : new SecureRandom(), rsaParams.getKeysize(), defaultTests); in initialize()
/external/bouncycastle/bcprov/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/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dh/
DAlgorithmParameterGeneratorSpi.java5 import java.security.SecureRandom;
18 protected SecureRandom random;
25 SecureRandom random) in engineInit()
33 SecureRandom random) in engineInit()
57 pGen.init(strength, 20, new SecureRandom()); in engineGenerateParameters()
DKeyPairGeneratorSpi.java5 import java.security.SecureRandom;
31 SecureRandom random = new SecureRandom();
41 SecureRandom random) in initialize()
49 SecureRandom random) in initialize()
/external/apache-harmony/crypto/src/test/support/common/java/org/apache/harmony/crypto/tests/support/
DMyKeyGeneratorSpi.java25 import java.security.SecureRandom;
44 protected void engineInit(AlgorithmParameterSpec params, SecureRandom random) in engineInit()
52 protected void engineInit(int keysize, SecureRandom random) { in engineInit()
59 protected void engineInit(SecureRandom random) { in engineInit()
/external/bouncycastle/bcprov/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()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dsa/
DAlgorithmParameterGeneratorSpi.java6 import java.security.SecureRandom;
19 protected SecureRandom random;
25 SecureRandom random) in engineInit()
48 SecureRandom random) in engineInit()
69 random = new SecureRandom(); in engineGenerateParameters()
DKeyPairGeneratorSpi.java6 import java.security.SecureRandom;
25 SecureRandom random = new SecureRandom();
35 SecureRandom random) in initialize()
48 SecureRandom random) in initialize()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/ec/
DKeyPairGeneratorSpi.java7 import java.security.SecureRandom;
49 SecureRandom random = new SecureRandom();
86 SecureRandom random) in initialize()
115 SecureRandom random) in initialize()
165 initialize(strength, new SecureRandom()); in generateKeyPair()
195 protected ECKeyGenerationParameters createKeyGenParamsBC(ECParameterSpec p, SecureRandom r) in createKeyGenParamsBC()
200 …KeyGenerationParameters createKeyGenParamsJCE(java.security.spec.ECParameterSpec p, SecureRandom r) in createKeyGenParamsJCE()
239 protected void initializeNamedCurve(String curveName, SecureRandom random) in initializeNamedCurve()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/signers/
DDSASigner.java4 import java.security.SecureRandom;
24 private SecureRandom random;
48 SecureRandom providedRandom = null; in init()
162 protected SecureRandom initSecureRandom(boolean needed, SecureRandom provided) in initSecureRandom()
164 return !needed ? null : (provided != null) ? provided : new SecureRandom(); in initSecureRandom()
/external/apache-harmony/crypto/src/test/api/java/org/apache/harmony/crypto/tests/javax/crypto/
DKeyAgreementTest.java32 import java.security.SecureRandom;
377 SecureRandom random = null; in testInit01()
388 kAgs[i].init(publKey, new SecureRandom()); in testInit01()
408 kAgs[i].init(publKey, dhPs, new SecureRandom()); in testInit01()
430 SecureRandom random = null; in testInit02()
441 kAgs[i].init(privKey, dsa, new SecureRandom()); in testInit02()
472 SecureRandom randomNull = null; in testInit03()
473 SecureRandom random = new SecureRandom(); in testInit03()
520 SecureRandom randomNull = null; in testInit04()
521 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;
40 public SecureRandom secureRandom;
60 public void initialize(int keysize, SecureRandom random) { in initialize()
80 public void initialize(AlgorithmParameterSpec param, SecureRandom random) in initialize()
DMyAlgorithmParameterGeneratorSpi.java26 import java.security.SecureRandom;
37 protected void engineInit(int keysize, SecureRandom random) { in engineInit()
44 SecureRandom random) { in engineInit()
/external/jetty/src/java/org/eclipse/jetty/server/session/
DAbstractSessionIdManager.java21 import java.security.SecureRandom;
152 if (_random instanceof SecureRandom) in newSessionId()
154 SecureRandom secure = (SecureRandom)_random; in newSessionId()
206 _random=new SecureRandom(); in initRandom()

123456