Searched refs:random (Results 1 - 25 of 322) sorted by relevance

1234567891011>>

/openjdk10/jdk/src/java.base/share/classes/com/sun/crypto/provider/
H A DKeyGeneratorCore.java58 private SecureRandom random; field in class:KeyGeneratorCore
73 void implInit(SecureRandom random) { argument
75 this.random = random;
80 void implInit(AlgorithmParameterSpec params, SecureRandom random) argument
88 void implInit(int keysize, SecureRandom random) { argument
94 this.random = random;
100 if (random == null) {
101 random
114 engineInit(SecureRandom random) argument
117 engineInit(AlgorithmParameterSpec params, SecureRandom random) argument
121 engineInit(int keySize, SecureRandom random) argument
156 engineInit(SecureRandom random) argument
159 engineInit(AlgorithmParameterSpec params, SecureRandom random) argument
163 engineInit(int keySize, SecureRandom random) argument
181 engineInit(SecureRandom random) argument
184 engineInit(AlgorithmParameterSpec params, SecureRandom random) argument
188 engineInit(int keySize, SecureRandom random) argument
[all...]
H A DAESKeyGenerator.java47 private SecureRandom random = null; field in class:AESKeyGenerator
59 * @param random the source of randomness for this generator
61 protected void engineInit(SecureRandom random) { argument
62 this.random = random;
70 * @param random the source of randomness for this key generator
76 SecureRandom random)
88 * @param random the source of randomness for this key generator
90 protected void engineInit(int keysize, SecureRandom random) { argument
97 this.engineInit(random);
75 engineInit(AlgorithmParameterSpec params, SecureRandom random) argument
[all...]
H A DHmacSHA1KeyGenerator.java45 private SecureRandom random = null; field in class:HmacSHA1KeyGenerator
57 * @param random the source of randomness for this generator
59 protected void engineInit(SecureRandom random) { argument
60 this.random = random;
68 * @param random the source of randomness for this key generator
74 SecureRandom random)
87 * @param random the source of randomness for this key generator
89 protected void engineInit(int keysize, SecureRandom random) { argument
91 this.engineInit(random);
73 engineInit(AlgorithmParameterSpec params, SecureRandom random) argument
[all...]
H A DBlowfishKeyGenerator.java45 private SecureRandom random = null; field in class:BlowfishKeyGenerator
57 * @param random the source of randomness for this generator
59 protected void engineInit(SecureRandom random) { argument
60 this.random = random;
68 * @param random the source of randomness for this key generator
74 SecureRandom random)
87 * @param random the source of randomness for this key generator
89 protected void engineInit(int keysize, SecureRandom random) { argument
97 this.engineInit(random);
73 engineInit(AlgorithmParameterSpec params, SecureRandom random) argument
[all...]
H A DHmacMD5KeyGenerator.java45 private SecureRandom random = null; field in class:HmacMD5KeyGenerator
57 * @param random the source of randomness for this generator
59 protected void engineInit(SecureRandom random) { argument
60 this.random = random;
68 * @param random the source of randomness for this key generator
74 SecureRandom random)
87 * @param random the source of randomness for this key generator
89 protected void engineInit(int keysize, SecureRandom random) { argument
91 this.engineInit(random);
73 engineInit(AlgorithmParameterSpec params, SecureRandom random) argument
[all...]
H A DDESedeKeyGenerator.java46 private SecureRandom random = null; field in class:DESedeKeyGenerator
58 * @param random the source of randomness for this generator
60 protected void engineInit(SecureRandom random) { argument
61 this.random = random;
69 * @param random the source of randomness for this key generator
75 SecureRandom random)
90 * @param random the source of randomness for this key generator
92 protected void engineInit(int keysize, SecureRandom random) { argument
98 this.engineInit(random);
74 engineInit(AlgorithmParameterSpec params, SecureRandom random) argument
[all...]
H A DDESKeyGenerator.java46 private SecureRandom random = null; field in class:DESKeyGenerator
57 * @param random the source of randomness for this generator
59 protected void engineInit(SecureRandom random) { argument
60 this.random = random;
68 * @param random the source of randomness for this key generator
74 SecureRandom random)
86 * @param random the source of randomness for this key generator
88 protected void engineInit(int keysize, SecureRandom random) { argument
93 this.engineInit(random);
73 engineInit(AlgorithmParameterSpec params, SecureRandom random) argument
[all...]
H A DTlsRsaPremasterSecretGenerator.java49 private SecureRandom random; field in class:TlsRsaPremasterSecretGenerator
54 protected void engineInit(SecureRandom random) { argument
60 SecureRandom random) throws InvalidAlgorithmParameterException {
65 this.random = random;
68 protected void engineInit(int keysize, SecureRandom random) { argument
81 if (random == null) {
82 random = new SecureRandom();
85 random.nextBytes(b);
59 engineInit(AlgorithmParameterSpec params, SecureRandom random) argument
H A DDHParameterGenerator.java40 * prime modulus and the size in bits of the random exponent as input.
55 // The size in bits of the random exponent (private value)
59 private SecureRandom random = null; field in class:DHParameterGenerator
81 * @param random the source of randomness
84 protected void engineInit(int keysize, SecureRandom random) { argument
87 this.random = random;
93 * the size of the random exponent, both in bits.
96 * @param random the source of randomness
103 SecureRandom random) throw
102 engineInit(AlgorithmParameterSpec genParamSpec, SecureRandom random) argument
[all...]
H A DDHKeyPairGenerator.java63 // The size in bits of the random exponent (private value)
67 private SecureRandom random; field in class:DHKeyPairGenerator
91 * @param random the source of randomness
93 public void initialize(int keysize, SecureRandom random) { argument
109 this.random = random;
117 * generator, and optionally the requested size in bits of the random
121 * @param random the source of randomness
127 SecureRandom random) throws InvalidAlgorithmParameterException {
149 this.random
126 initialize(AlgorithmParameterSpec algParams, SecureRandom random) argument
[all...]
/openjdk10/jdk/src/java.base/share/classes/java/security/
H A DKeyPairGeneratorSpi.java69 * @param random the source of randomness for this generator.
74 public abstract void initialize(int keysize, SecureRandom random); argument
91 * @param random the source of randomness for this generator.
99 SecureRandom random)
98 initialize(AlgorithmParameterSpec params, SecureRandom random) argument
H A DAlgorithmParameterGeneratorSpi.java68 * @param random the source of randomness.
70 protected abstract void engineInit(int size, SecureRandom random); argument
77 * @param random the source of randomness.
83 SecureRandom random)
82 engineInit(AlgorithmParameterSpec genParamSpec, SecureRandom random) argument
/openjdk10/jdk/src/java.base/share/classes/java/security/interfaces/
H A DDSAKeyPairGenerator.java37 * the random bit source.
81 * @param random the random bit source to use to generate key bits;
87 public void initialize(DSAParams params, SecureRandom random) argument
106 * @param random the random bit source to use to generate key bits;
116 public void initialize(int modlen, boolean genParams, SecureRandom random) argument
/openjdk10/nashorn/samples/
H A Duniform_random.js32 // generate/print 100 uniformly distributed random values
38 // Math.random passed here for double generator lambda
42 .generate(Math.random)
47 .generate(Math.random)
/openjdk10/jdk/src/java.base/share/classes/javax/crypto/
H A DKeyGeneratorSpi.java61 * @param random the source of randomness for this generator
63 protected abstract void engineInit(SecureRandom random); argument
70 * @param random the source of randomness for this key generator
76 SecureRandom random)
85 * @param random the source of randomness for this key generator
90 protected abstract void engineInit(int keysize, SecureRandom random); argument
75 engineInit(AlgorithmParameterSpec params, SecureRandom random) argument
/openjdk10/jdk/src/java.base/share/classes/sun/security/provider/
H A DDSAKeyPairGenerator.java61 /* The source of random bits to use */
62 private SecureRandom random; field in class:DSAKeyPairGenerator
86 public void initialize(int modlen, SecureRandom random) { argument
88 initialize(modlen, true, random);
97 public void initialize(int modlen, boolean genParams, SecureRandom random) argument
123 this.random = random;
133 public void initialize(DSAParams params, SecureRandom random) argument
141 initialize0(spec, random);
149 * @param random th
154 initialize(AlgorithmParameterSpec params, SecureRandom random) argument
163 initialize0(DSAParameterSpec params, SecureRandom random) argument
200 generateKeyPair(BigInteger p, BigInteger q, BigInteger g, SecureRandom random) argument
231 generateX(SecureRandom random, BigInteger q) argument
[all...]
/openjdk10/hotspot/test/testlibrary/jittester/src/jdk/test/lib/jittester/utils/
H A DPseudoRandom.java36 * This class is used for any random generation operations.
40 private static Random random = null; field in class:PseudoRandom
56 random = new java.util.Random(seed.hashCode());
59 public static double random() { method in class:PseudoRandom
60 return random.nextDouble();
65 return random.nextBoolean();
70 return random.nextDouble() < probability;
74 long result = (long) (limit * random.nextDouble());
79 int result = (int) (limit * random.nextDouble());
84 Collections.shuffle(list, random);
[all...]
/openjdk10/jdk/test/sun/security/pkcs11/SecureRandom/
H A DBasic.java44 SecureRandom random;
46 random = SecureRandom.getInstance("PKCS11");
53 random.nextBytes(b);
55 random.setSeed(b);
56 random.nextBytes(b);
/openjdk10/jdk/test/javax/crypto/Cipher/
H A DByteBuffers.java44 Random random = new Random();
47 random.nextBytes(t);
50 random.nextBytes(keyBytes);
60 i0.position(random.nextInt(256));
72 o0.position(random.nextInt(256));
78 crypt(cipher, i1, o1, outBytes, random);
79 crypt(cipher, i2, o1, outBytes, random);
80 crypt(cipher, i3, o1, outBytes, random);
81 crypt(cipher, i1, o2, outBytes, random);
82 crypt(cipher, i2, o2, outBytes, random);
88 crypt(Cipher cipher, ByteBuffer in, ByteBuffer out, byte[] outBytes, Random random) argument
[all...]
/openjdk10/jdk/test/java/security/SecureRandom/
H A DApiTest.java68 SecureRandom random = SecureRandom.getInstance(mech);
69 verifyAPI(random, mech);
235 * @param random SecureRandom instance
238 private static void verifyAPI(SecureRandom random, String mech) argument
242 mech, random.getProvider().getName());
245 // Generate random number.
246 random.nextBytes(output);
249 byte[] seed = random.generateSeed(1);
250 random.setSeed(seed);
251 random
327 isSupportPR(String mech, SecureRandom random) argument
[all...]
/openjdk10/jdk/test/javax/crypto/Mac/
H A DByteBuffers.java44 Random random = new Random();
47 random.nextBytes(t);
50 random.nextBytes(keyBytes);
59 b1.position(random.nextInt(256));
64 verify(mac, macValue, b2, random);
70 verify(mac, macValue, b3, random);
75 verify(mac, macValue, b4, random);
80 private static void verify(Mac mac, byte[] macValue, ByteBuffer b, Random random) throws Exception { argument
82 b.limit(random.nextInt(lim));
/openjdk10/jdk/test/java/awt/Window/ShapedAndTranslucentWindows/
H A DShapedByAPI.java73 location.translate(random.nextInt(dl), random.nextInt(dl));
81 window.setSize(size.width+random.nextInt(2*dl)-dl, size.height+random.nextInt(2*dl)-dl);
/openjdk10/nashorn/test/script/basic/
H A DJDK-8080182.js33 return (Math.random() * 100).toString();
/openjdk10/jdk/src/java.base/share/classes/sun/security/rsa/
H A DRSAKeyPairGenerator.java38 * We generate two random primes until we find two where phi is relative
54 private SecureRandom random; field in class:RSAKeyPairGenerator
62 public void initialize(int keySize, SecureRandom random) { argument
74 this.random = random;
79 public void initialize(AlgorithmParameterSpec params, SecureRandom random) argument
115 this.random = random;
123 if (random == null) {
124 random
[all...]
/openjdk10/jdk/test/java/security/MessageDigest/
H A DByteBuffers.java41 Random random = new Random();
44 random.nextBytes(t);
51 b1.position(random.nextInt(256));
56 byte[] d2 = digest(md, b2, random);
65 byte[] d3 = digest(md, b3, random);
73 byte[] d4 = digest(md, b4, random);
80 private static byte[] digest(MessageDigest md, ByteBuffer b, Random random) throws Exception { argument
82 b.limit(random.nextInt(lim));

Completed in 276 milliseconds

1234567891011>>