HomeSort by relevance Sort by last modified time
    Searched refs:SecureRandom (Results 101 - 125 of 295) sorted by null

1 2 3 45 6 7 8 91011>>

  /libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
KeyAgreementTest.java 35 import java.security.SecureRandom;
350 SecureRandom randomNull = null;
351 SecureRandom random = new SecureRandom();
384 * <code>init(Key key, SecureRandom random)</code>
386 * <code>init(Key key, AlgorithmParameterSpec params, SecureRandom random)</code>
397 SecureRandom random = null;
408 kAgs[i].init(publKey, new SecureRandom());
428 kAgs[i].init(publKey, dhPs, new SecureRandom());
438 * <code>init(Key key, AlgorithmParameterSpec params, SecureRandom random)</code
    [all...]
CipherOutputStream1Test.java 33 import java.security.SecureRandom;
205 kg.init(56, new SecureRandom());
251 protected void engineInit(int opmode, Key key, SecureRandom random)
258 SecureRandom random)
265 SecureRandom random)
CipherTest.java 34 import java.security.SecureRandom;
218 cipher.init(Cipher.ENCRYPT_MODE, CIPHER_KEY_3DES, new SecureRandom());
247 * java.security.SecureRandom)
251 cipher.init(Cipher.ENCRYPT_MODE, CIPHER_KEY_3DES, new SecureRandom());
255 cipher.init(Cipher.ENCRYPT_MODE, CIPHER_KEY_3DES, new SecureRandom());
292 * java.security.SecureRandom)
298 cipher.init(Cipher.ENCRYPT_MODE, CIPHER_KEY_3DES, ap, new SecureRandom());
304 cipher.init(Cipher.ENCRYPT_MODE, CIPHER_KEY_3DES, ap, new SecureRandom());
313 cipher.init(Cipher.ENCRYPT_MODE, CIPHER_KEY_DES, ap, new SecureRandom());
717 c.init(Cipher.DECRYPT_MODE, CIPHER_KEY_DES, ap, new SecureRandom());
    [all...]
  /libcore/ojluni/src/main/java/javax/net/ssl/
SSLContextSpi.java 49 * @see SSLContext#init(KeyManager [], TrustManager [], SecureRandom)
52 SecureRandom sr) throws KeyManagementException;
  /cts/tests/security/src/android/keystore/cts/
CertificateUtils.java 27 import java.security.SecureRandom;
45 new SecureRandom().nextBytes(serialBytes);
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/util/
JcaJceHelper.java 10 import java.security.SecureRandom;
64 SecureRandom createSecureRandom(String algorithm)
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/
BigIntegers.java 4 import java.security.SecureRandom;
75 SecureRandom random)
  /frameworks/base/core/tests/coretests/src/android/net/
SSLSessionCacheTest.java 27 import java.security.SecureRandom;
72 SecureRandom secureRandom) throws KeyManagementException {
  /libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/
KeyAgreementThread.java 26 import java.security.SecureRandom;
70 apg.init(1024, new SecureRandom());
  /libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/interfaces/
DHPrivateKeyTest.java 28 import java.security.SecureRandom;
69 kg.initialize(new DHParameterSpec(p, g), new SecureRandom());
DHPublicKeyTest.java 30 import java.security.SecureRandom;
69 kg.initialize(new DHParameterSpec(p, g), new SecureRandom());
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/signers/
ECDSASigner.java 4 import java.security.SecureRandom;
30 private SecureRandom random;
54 SecureRandom providedRandom = null;
248 protected SecureRandom initSecureRandom(boolean needed, SecureRandom provided)
250 return !needed ? null : (provided != null) ? provided : new SecureRandom();
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/symmetric/util/
BaseStreamCipher.java 9 import java.security.SecureRandom;
150 SecureRandom random)
232 SecureRandom ivRandom = random;
236 ivRandom = new SecureRandom();
279 SecureRandom random)
312 SecureRandom random)
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/x509/
X509V1CertificateGenerator.java 12 import java.security.SecureRandom;
207 SecureRandom random)
243 SecureRandom random)
280 return generate(key, (SecureRandom)null);
293 SecureRandom random)
332 SecureRandom random)
  /frameworks/base/keystore/java/android/security/keystore/
AndroidKeyStoreKeyGeneratorSpi.java 32 import java.security.SecureRandom;
52 protected void engineInit(AlgorithmParameterSpec params, SecureRandom random)
113 private SecureRandom mRng;
145 protected void engineInit(SecureRandom random) {
151 protected void engineInit(int keySize, SecureRandom random) {
157 protected void engineInit(AlgorithmParameterSpec params, SecureRandom random)
  /frameworks/base/services/tests/servicestests/src/com/android/server/backup/
BackupPasswordManagerTest.java 44 import java.security.SecureRandom;
65 mPasswordManager = new BackupPasswordManager(mContext, mStateFolder, new SecureRandom());
114 mPasswordManager = new BackupPasswordManager(mContext, mStateFolder, new SecureRandom());
129 mPasswordManager = new BackupPasswordManager(mContext, mStateFolder, new SecureRandom());
151 mContext, mStateFolder, new SecureRandom());
164 mContext, mStateFolder, new SecureRandom());
  /external/apache-commons-math/src/main/java/org/apache/commons/math/random/
RandomDataImpl.java 24 import java.security.SecureRandom;
50 * instance to generate non-secure data and a {@link java.security.SecureRandom}
59 * <code>SecureRandom</code> instance can also be reset.
63 * {@link java.security.SecureRandom}.
70 * <code>SecureRandom</code> instances used in data generation. Therefore, to
92 * <code>SecureRandom</code> instances. Therefore, <code>reSeed(long)</code>
114 private SecureRandom secRand = null;
236 * <code>SecureRandom</code>.</li>
254 // Get SecureRandom and setup Digest provider
255 SecureRandom secRan = getSecRan()
    [all...]
  /libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
KeyPairGenerator1Test.java 33 import java.security.SecureRandom;
336 * <code>initialize(int keysize, SecureRandom random)</code>
338 * <code>initialize(AlgorithmParameterSpec param, SecureRandom random)</code>
352 SecureRandom random = new SecureRandom();
375 * <code>initialize(int keysize, SecureRandom random)</code>
377 * <code>initialize(AlgorithmParameterSpec param, SecureRandom random)</code>
387 SecureRandom random = new SecureRandom();
418 ((MyKeyPairGenerator1) mKPG).secureRandom);
    [all...]
KeyFactory2Test.java 31 import java.security.SecureRandom;
113 SecureRandom random = new SecureRandom(); // We don't use
144 SecureRandom random = new SecureRandom();
236 SecureRandom random = new SecureRandom();
293 SecureRandom random = new SecureRandom();
AlgorithmParameterGenerator2Test.java 31 import java.security.SecureRandom;
85 algParGen.init(pp, new SecureRandom());
93 algParGen.init(pp, new SecureRandom());
97 algParGen.init(0, new SecureRandom());
105 algParGen.init(-10, new SecureRandom());
  /external/conscrypt/openjdk-integ-tests/src/test/java/org/conscrypt/javax/crypto/
KeyGeneratorTest.java 23 import java.security.SecureRandom;
177 kg.init((SecureRandom) null);
180 kg.init(new SecureRandom());
189 kg.init(keySize, (SecureRandom) null);
192 kg.init(keySize, new SecureRandom());
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
SSLContextSpiTest.java 30 import java.security.SecureRandom;
153 * SSLContextSpi#engineInit(KeyManager[] km, TrustManager[] tm, SecureRandom sr)
169 SecureRandom sr = SecureRandom.getInstance("SHA1PRNG");
208 SecureRandom sr = SecureRandom.getInstance("SHA1PRNG");
  /libcore/ojluni/src/main/java/java/security/
KeyPairGenerator.java 58 * {@link #initialize(int, java.security.SecureRandom) initialize}
61 * {@code keysize} argument, and uses the {@code SecureRandom}
64 * of {@code SecureRandom}, a system-provided source of randomness is
86 * argument. One also has a {@code SecureRandom} argument, while the
87 * the other uses the {@code SecureRandom}
90 * of {@code SecureRandom}, a system-provided source of randomness is
363 * a default parameter set and the {@code SecureRandom}
367 * {@code SecureRandom}, a system-provided source of randomness is
395 public void initialize(int keysize, SecureRandom random) {
410 * set and the {@code SecureRandom}
    [all...]
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dh/
KeyAgreementSpi.java 8 import java.security.SecureRandom;
176 SecureRandom random)
216 SecureRandom random)
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/ec/
KeyAgreementSpi.java 9 import java.security.SecureRandom;
155 SecureRandom random)
170 SecureRandom random)

Completed in 4702 milliseconds

1 2 3 45 6 7 8 91011>>