/openjdk7/jdk/src/share/classes/com/sun/crypto/provider/ |
H A D | AESWrapCipher.java | 158 * @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 D | ARCFOURCipher.java | 154 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 D | BlowfishCipher.java | 129 * <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 D | DESCipher.java | 124 * <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 D | DESedeCipher.java | 121 * <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 D | PBECipherCore.java | 138 * <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 D | PBEWithMD5AndDESCipher.java | 132 * <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 D | PBEWithMD5AndTripleDESCipher.java | 41 * 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 D | RC2Cipher.java | 78 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 D | CipherCore.java | 293 * <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 D | DESedeWrapCipher.java | 166 * 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 D | RSACipher.java | 201 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 D | TlsPrfGenerator.java | 120 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 D | RSAPadding.java | 85 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 D | RSASignature.java | 105 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 D | CipherBox.java | 69 * (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 D | RSASignature.java | 121 protected void engineInitSign(PrivateKey privateKey, SecureRandom random) argument 125 rawRsa.initSign(privateKey, random);
|
/openjdk7/jdk/test/java/util/zip/ZipFile/ |
H A D | Assortment.java | 164 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 D | MultiMonitorTest.java | 163 /* 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 D | MergeDemo.java | 55 // 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 D | Math.java | 713 public static double random() { method in class:Math
|
H A D | StrictMath.java | 692 public static double random() { method in class:StrictMath
|
/openjdk7/jdk/src/windows/classes/sun/security/mscapi/ |
H A D | RSACipher.java | 147 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 D | InflateIn_DeflateOut.java | 38 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 D | ByteBuffersNull.java | 153 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
|