Searched defs:random (Results 76 - 100 of 119) sorted by relevance

12345

/openjdk7/jdk/src/share/classes/com/sun/crypto/provider/
H A DAESWrapCipher.java158 * @param random the source of randomness.
163 protected void engineInit(int opmode, Key key, SecureRandom random) argument
190 * @param random the source of randomness.
199 SecureRandom random)
205 engineInit(opmode, key, random);
222 * @param random the source of randomness.
230 SecureRandom random)
236 engineInit(opmode, key, random);
197 engineInit(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random) argument
228 engineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random) argument
H A DARCFOURCipher.java154 protected void engineInit(int opmode, Key key, SecureRandom random) argument
161 AlgorithmParameterSpec params, SecureRandom random)
172 AlgorithmParameters params, SecureRandom random)
160 engineInit(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random) argument
171 engineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random) argument
H A DBlowfishCipher.java129 * <p>This is useful in the case where a random IV has been created
167 * it from <code>random</code>.
184 * @param random the source of randomness
189 protected void engineInit(int opmode, Key key, SecureRandom random) argument
191 core.init(opmode, key, random);
203 * requires any random bytes, it will get them from <code>random</code>.
211 * @param random the source of randomness
220 SecureRandom random)
222 core.init(opmode, key, params, random);
218 engineInit(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random) argument
225 engineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random) argument
[all...]
H A DDESCipher.java124 * <p>This is useful in the case where a random IV has been created
162 * it from <code>random</code>.
179 * @param random the source of randomness
184 protected void engineInit(int opmode, Key key, SecureRandom random) argument
186 core.init(opmode, key, random);
198 * requires any random bytes, it will get them from <code>random</code>.
206 * @param random the source of randomness
215 SecureRandom random)
217 core.init(opmode, key, params, random);
213 engineInit(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random) argument
220 engineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random) argument
[all...]
H A DDESedeCipher.java121 * <p>This is useful in the case where a random IV has been created
142 * it from <code>random</code>.
159 * @param random the source of randomness
164 protected void engineInit(int opmode, Key key, SecureRandom random) argument
166 core.init(opmode, key, random);
178 * requires any random bytes, it will get them from <code>random</code>.
186 * @param random the source of randomness
195 SecureRandom random)
197 core.init(opmode, key, params, random);
193 engineInit(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random) argument
200 engineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random) argument
[all...]
H A DPBECipherCore.java138 * <p> This is useful in the case where a random IV has been created
198 * requires any random bytes, it will get them from <code>random</code>.
206 * @param random the source of randomness
214 SecureRandom random)
228 // create random salt and use default iteration count
230 random.nextBytes(salt);
258 cipher.init(opmode, cipherKey, ivSpec, random);
324 SecureRandom random)
337 init(opmode, key, pbeSpec, random);
213 init(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random) argument
323 init(int opmode, Key key, AlgorithmParameters params, SecureRandom random) argument
[all...]
H A DPBEWithMD5AndDESCipher.java132 * <p> This is useful in the case where a random IV has been created
170 * requires any random bytes, it will get them from <code>random</code>.
177 * @param random the source of randomness
182 protected void engineInit(int opmode, Key key, SecureRandom random) argument
185 engineInit(opmode, key, (AlgorithmParameterSpec) null, random);
202 * requires any random bytes, it will get them from <code>random</code>.
210 * @param random the source of randomness
219 SecureRandom random)
217 engineInit(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random) argument
224 engineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random) argument
[all...]
H A DPBEWithMD5AndTripleDESCipher.java41 * 1. Create random salt and split it in two halves. If the two halves are
144 * <p> This is useful in the case where a random IV has been created
182 * requires any random bytes, it will get them from <code>random</code>.
189 * @param random the source of randomness
194 protected void engineInit(int opmode, Key key, SecureRandom random) argument
197 core.init(opmode, key, (AlgorithmParameterSpec) null, random);
213 * requires any random bytes, it will get them from <code>random</code>.
219 * @param random th
226 engineInit(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random) argument
233 engineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random) argument
[all...]
H A DRC2Cipher.java78 protected void engineInit(int opmode, Key key, SecureRandom random) argument
81 core.init(opmode, key, random);
85 AlgorithmParameterSpec params, SecureRandom random)
93 core.init(opmode, key, params, random);
97 AlgorithmParameters params, SecureRandom random)
103 engineInit(opmode, key, rc2Params, random);
110 core.init(opmode, key, params, random);
84 engineInit(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random) argument
96 engineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random) argument
H A DCipherCore.java293 * <p>This is useful in the case where a random IV has been created
361 * it from <code>random</code>.
378 * @param random the source of randomness
383 void init(int opmode, Key key, SecureRandom random) argument
386 init(opmode, key, (AlgorithmParameterSpec)null, random);
401 * requires any random bytes, it will get them from <code>random</code>.
409 * @param random the source of randomness
417 SecureRandom random)
457 if (random
416 init(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random) argument
472 init(int opmode, Key key, AlgorithmParameters params, SecureRandom random) argument
[all...]
H A DDESedeWrapCipher.java166 * it from <code>random</code>.
171 * @param random the source of randomness.
176 protected void engineInit(int opmode, Key key, SecureRandom random) argument
179 engineInit(opmode, key, (AlgorithmParameterSpec) null, random);
199 * it from <code>random</code>.
205 * @param random the source of randomness.
213 SecureRandom random)
220 if (random == null) {
221 random = SunJCE.RANDOM;
223 random
211 engineInit(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random) argument
271 engineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random) argument
[all...]
H A DRSACipher.java201 protected void engineInit(int opmode, Key key, SecureRandom random) argument
204 init(opmode, key, random, null);
217 AlgorithmParameterSpec params, SecureRandom random)
219 init(opmode, key, random, params);
224 AlgorithmParameters params, SecureRandom random)
227 init(opmode, key, random, null);
232 init(opmode, key, random, spec);
243 private void init(int opmode, Key key, SecureRandom random, argument
277 padding = RSAPadding.getInstance(RSAPadding.PAD_NONE, n, random);
286 padding = RSAPadding.getInstance(blockType, n, random);
216 engineInit(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random) argument
223 engineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random) argument
[all...]
H A DTlsPrfGenerator.java120 protected void engineInit(SecureRandom random) { argument
125 SecureRandom random) throws InvalidAlgorithmParameterException {
137 protected void engineInit(int keysize, SecureRandom random) { argument
124 engineInit(AlgorithmParameterSpec params, SecureRandom random) argument
/openjdk7/jdk/src/share/classes/sun/security/rsa/
H A DRSAPadding.java85 private SecureRandom random; field in class:RSAPadding
113 SecureRandom random) throws InvalidKeyException,
115 return new RSAPadding(type, paddedSize, random, null);
123 SecureRandom random, OAEPParameterSpec spec)
125 return new RSAPadding(type, paddedSize, random, spec);
129 private RSAPadding(int type, int paddedSize, SecureRandom random, argument
134 this.random = random;
296 // blocktype 2: padding bytes are random non-zero bytes
297 if (random
112 getInstance(int type, int paddedSize, SecureRandom random) argument
122 getInstance(int type, int paddedSize, SecureRandom random, OAEPParameterSpec spec) argument
[all...]
H A DRSASignature.java105 protected void engineInitSign(PrivateKey privateKey, SecureRandom random) argument
111 initCommon(rsaKey, random);
117 private void initCommon(RSAKey rsaKey, SecureRandom random) argument
123 (RSAPadding.PAD_BLOCKTYPE_1, keySize, random);
/openjdk7/jdk/src/share/classes/sun/security/ssl/
H A DCipherBox.java69 * (random)
111 * secure random
113 private SecureRandom random; field in class:CipherBox
124 * For performance, we do not use random IVs. As the initial decryption
146 SecretKey key, IvParameterSpec iv, SecureRandom random,
153 if (random == null) {
154 random = JsseJce.getSecureRandom();
156 this.random = random;
175 cipher.init(mode, key, iv, random);
145 CipherBox(ProtocolVersion protocolVersion, BulkCipher bulkCipher, SecretKey key, IvParameterSpec iv, SecureRandom random, boolean encrypt) argument
198 newCipherBox(ProtocolVersion version, BulkCipher cipher, SecretKey key, IvParameterSpec iv, SecureRandom random, boolean encrypt) argument
[all...]
H A DRSASignature.java121 protected void engineInitSign(PrivateKey privateKey, SecureRandom random) argument
125 rawRsa.initSign(privateKey, random);
/openjdk7/jdk/test/java/util/zip/ZipFile/
H A DAssortment.java164 private static Random random = new Random(); field in class:Assortment
169 sb.append((char)(random.nextInt(10000)+1));
/openjdk7/jdk/test/javax/management/monitor/
H A DMultiMonitorTest.java163 /* We give a small random number of normal readings (possibly
221 private static final Random random = new Random(); field in class:MultiMonitorTest
223 return random.nextInt(n);
/openjdk7/jdk/src/share/sample/forkjoin/mergesort/
H A DMergeDemo.java55 // Use a fixed seed to always get the same random values back
56 private final Random random = new Random(759123751834L); field in class:MergeDemo
168 * Generates an array of {@code elements} random elements
170 * @return an array of {@code elements} random elements
175 array[i] = random.nextInt();
238 * Runs <i>iterations</i> number of test sorts of a random array of <i>element</i> length
240 * @param elements number of elements in the random array
/openjdk7/jdk/src/share/classes/java/lang/
H A DMath.java713 public static double random() { method in class:Math
H A DStrictMath.java692 public static double random() { method in class:StrictMath
/openjdk7/jdk/src/windows/classes/sun/security/mscapi/
H A DRSACipher.java147 protected void engineInit(int opmode, Key key, SecureRandom random) argument
154 AlgorithmParameterSpec params, SecureRandom random)
166 AlgorithmParameters params, SecureRandom random)
153 engineInit(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random) argument
165 engineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random) argument
/openjdk7/jdk/test/java/util/zip/
H A DInflateIn_DeflateOut.java38 private Random random; field in class:InflateIn_DeflateOut.PairedInputStream
46 random = new Random(new Date().getTime());
54 if (random.nextInt(100) < 10) {
130 Random random = new Random(new Date().getTime());
138 byte[] data = new byte[random.nextInt(1024 * 1024)];
140 random.nextBytes(data);
152 Random random = new Random(new Date().getTime());
155 // byte[] data = new byte[random.nextInt(1024 * 1024)];
158 random.nextBytes(data);
168 byte[] data = new byte[random
[all...]
/openjdk7/jdk/test/javax/crypto/Cipher/
H A DByteBuffersNull.java153 public void engineInit(int opmode, Key key, SecureRandom random) argument
157 AlgorithmParameterSpec params, SecureRandom random)
161 SecureRandom random)
156 engineInit(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random) argument
160 engineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random) argument

Completed in 114 milliseconds

12345