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

12345

/openjdk7/jdk/src/share/classes/sun/security/ec/
H A DECDSASignature.java59 private SecureRandom random; field in class:ECDSASignature
210 protected void engineInitSign(PrivateKey privateKey, SecureRandom random) argument
217 this.random = random;
278 if (random == null) {
279 random = JCAUtil.getSecureRandom();
281 random.nextBytes(seed);
401 * @param seed the random seed.
/openjdk7/langtools/test/tools/javac/scope/
H A DStarImportTest.java70 * Select a random element from an array of choices.
72 <T> T random(T... choices) { method in class:StarImportTest
131 * Setup env by creating pseudo-random collection of names, packages and classes.
141 switch (random(SetupKind.values())) {
156 * Set up a random number of names.
167 * Set up a package containing a random number of member elements.
177 String suffix = random(null, "$Entry", "$Entry2");
191 * Set up a class containing a random number of member elements.
256 * The core of the test. In a random order, move nested classes from
270 // select a random neste
[all...]
/openjdk7/jdk/src/share/classes/java/security/
H A DSignature.java523 * @param random the source of randomness for this signature.
527 public final void initSign(PrivateKey privateKey, SecureRandom random) argument
529 engineInitSign(privateKey, random);
783 * a parameter size, or a source of random bits for signature generation
848 * a source of random bits for signature generation (if appropriate),
1039 private void chooseProvider(int type, Key key, SecureRandom random) argument
1043 init(sigSpi, type, key, random);
1065 init(spi, type, key, random);
1099 SecureRandom random) throws InvalidKeyException {
1108 spi.engineInitSign((PrivateKey)key, random);
1098 init(SignatureSpi spi, int type, Key key, SecureRandom random) argument
1232 engineInitSign(PrivateKey privateKey, SecureRandom random) argument
[all...]
/openjdk7/jdk/src/share/classes/com/sun/media/sound/
H A DEmergencySoundbank.java483 Random random = new Random(102030201);
495 double detune = 1 + (random.nextDouble() * 2 - 1) * 0.01;
644 Random random = new Random(3049912);
646 data[i] = (2.0 * (random.nextDouble() - 0.5));
697 //Random random = new Random(302030201);
726 //double detune = 1 + (random.nextDouble()*2 - 1)*0.0001;
756 //Random random = new Random(302030201);
785 //double detune = 1 + (random.nextDouble()*2 - 1)*0.0001;
823 Random random = new Random(3049912);
825 data[i] = (2.0 * (random
2592 randomPhase(double[] data, Random random) argument
[all...]
/openjdk7/jdk/src/macosx/classes/apple/security/
H A DKeychainStore.java1012 private SecureRandom random; field in class:KeychainStore
1015 * Generate random salt
1019 // Generate a random salt.
1021 if (random == null) {
1022 random = new SecureRandom();
1024 salt = random.generateSeed(SALT_LEN);
/openjdk7/jdk/src/share/classes/com/sun/crypto/provider/
H A DPKCS12PBECipherCore.java230 SecureRandom random) throws InvalidKeyException,
266 if (random != null) {
267 random.nextBytes(salt);
317 cipher.init(opmode, cipherKey, ivSpec, random);
321 SecureRandom random)
332 implInit(opmode, key, paramSpec, random);
335 void implInit(int opmode, Key key, SecureRandom random) argument
338 implInit(opmode, key, (AlgorithmParameterSpec) null, random);
412 SecureRandom random)
414 core.implInit(opmode, key, params, random);
229 implInit(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random) argument
320 implInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random) argument
410 engineInit(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random) argument
416 engineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random) argument
422 engineInit(int opmode, Key key, SecureRandom random) argument
485 engineInit(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random) argument
491 engineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random) argument
497 engineInit(int opmode, Key key, SecureRandom random) argument
[all...]
/openjdk7/jdk/src/share/classes/sun/security/pkcs11/
H A DP11Cipher.java284 protected void engineInit(int opmode, Key key, SecureRandom random) argument
287 implInit(opmode, key, null, random);
295 AlgorithmParameterSpec params, SecureRandom random)
308 implInit(opmode, key, ivValue, random);
313 SecureRandom random)
328 implInit(opmode, key, ivValue, random);
333 SecureRandom random)
366 // generate random IV
367 if (random == null) {
368 random
294 engineInit(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random) argument
312 engineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random) argument
332 implInit(int opmode, Key key, byte[] iv, SecureRandom random) argument
[all...]
H A DP11RSACipher.java158 protected void engineInit(int opmode, Key key, SecureRandom random) argument
165 AlgorithmParameterSpec params, SecureRandom random)
176 SecureRandom random)
164 engineInit(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random) argument
175 engineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random) argument
/openjdk7/jdk/src/share/classes/sun/security/pkcs12/
H A DPKCS12KeyStore.java156 private SecureRandom random; field in class:PKCS12KeyStore
502 * Generate random salt
506 // Generate a random salt.
508 if (random == null) {
509 random = new SecureRandom();
511 random.nextBytes(salt);
864 // Generate a random salt.
/openjdk7/jdk/src/share/classes/sun/net/www/protocol/http/
H A DDigestAuthentication.java78 private static Random random; field in class:DigestAuthentication.Parameters
81 random = new Random();
116 random.nextBytes (bb);
/openjdk7/jdk/src/share/native/sun/security/ec/impl/
H A Dec.c354 * random value (in seed) and the public key is the result of
367 /* Generate a random private key using the algorithm A.4.1 of ANSI X9.62,
369 * random number generator.
374 * - random: a buffer of 2 * len random bytes
375 * - randomlen: the length in octets of the random buffer
383 const unsigned char *random, int randomlen, int kmflag)
398 * Reduces the 2*len buffer of random bytes modulo the group order.
404 /* No need to generate - random bytes are now supplied */
406 memcpy(privKeyBytes, random, randomle
382 ec_GenerateRandomPrivateKey(const unsigned char *order, int len, const unsigned char *random, int randomlen, int kmflag) argument
440 EC_NewKey(ECParams *ecParams, ECPrivateKey **privKey, const unsigned char* random, int randomlen, int kmflag) argument
840 ECDSA_SignDigest(ECPrivateKey *key, SECItem *signature, const SECItem *digest, const unsigned char* random, int randomLen, int kmflag) argument
[all...]
/openjdk7/jdk/src/share/classes/java/io/
H A DFile.java1878 private static final SecureRandom random = new SecureRandom(); field in class:File.TempDirectory
1882 long n = random.nextLong();
/openjdk7/jdk/src/share/classes/javax/crypto/
H A DCipher.java782 SecureRandom random) throws InvalidKeyException,
787 thisSpi.engineInit(opmode, key, random);
791 thisSpi.engineInit(opmode, key, paramSpec, random);
795 thisSpi.engineInit(opmode, key, params, random);
799 thisSpi.engineInit(opmode, key, random);
808 AlgorithmParameters params, SecureRandom random)
812 implInit(spi, initType, opmode, key, paramSpec, params, random);
850 params, random);
954 * <p>This is useful in the case where a random IV was created,
971 * this cipher, or may contain a combination of default and random
780 implInit(CipherSpi thisSpi, int type, int opmode, Key key, AlgorithmParameterSpec paramSpec, AlgorithmParameters params, SecureRandom random) argument
806 chooseProvider(int initType, int opmode, Key key, AlgorithmParameterSpec paramSpec, AlgorithmParameters params, SecureRandom random) argument
1202 init(int opmode, Key key, SecureRandom random) argument
1337 init(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random) argument
1468 init(int opmode, Key key, AlgorithmParameters params, SecureRandom random) argument
1613 init(int opmode, Certificate certificate, SecureRandom random) argument
[all...]
/openjdk7/jdk/test/java/lang/invoke/
H A DRicochetTest.java427 java.util.Random random; field in class:RicochetTest.RFCB
432 this.random = new java.util.Random(seed);
447 switch (random.nextInt(ACTION_COUNT)) {
463 return fns[random.nextInt(fns.length)].invokeExact(x, y);
/openjdk7/jdk/src/share/classes/sun/security/provider/
H A DPolicyFile.java2410 private java.util.Random random; field in class:PolicyFile.PolicyInfo
2425 random = new java.util.Random();
2432 int i = java.lang.Math.abs(random.nextInt() % pdMapping.length);
/openjdk7/jdk/src/share/classes/sun/security/ssl/
H A DCipherSuite.java465 IvParameterSpec iv, SecureRandom random,
468 key, iv, random, encrypt);
464 newCipher(ProtocolVersion version, SecretKey key, IvParameterSpec iv, SecureRandom random, boolean encrypt) argument
/openjdk7/jdk/src/share/classes/java/math/
H A DBigInteger.java482 * The uniformity of the distribution assumes that a fair source of random
502 // Generate random bytes and mask out any excess bits
525 * @param rnd source of random bits used to select candidates to be
555 * @param rnd source of random bits used to select candidates to be
573 * Find a random number of the specified bitLength that is probably prime.
618 * Find a random number of the specified bitLength that is probably prime.
728 boolean primeToCertainty(int certainty, Random random) { argument
739 return passesMillerRabin(rounds, random);
755 return passesMillerRabin(rounds, random) && passesLucasLehmer();
901 // Generate a uniform random o
[all...]
/openjdk7/jdk/test/java/util/Arrays/
H A DSorting.java276 private static void testStable(int length, MyRandom random) { argument
278 Pair[] a = build(length, random);
280 out.println("Test 'stable': " + "random = " + random.getSeed() +
319 private static Pair[] build(int length, Random random) { argument
323 int key = random.nextInt();
366 private static void testAndCheckWithInsertionSort(int length, MyRandom random) { argument
375 builder.build(golden, m, random);
380 " " + builder + "random = " + random
419 testAndCheckWithCheckSum(int length, MyRandom random) argument
442 testAndCheckWithScrambling(int length, MyRandom random) argument
469 testAndCheckFloat(int length, MyRandom random) argument
507 testAndCheckDouble(int length, MyRandom random) argument
563 scramble(int[] a, Random random) argument
569 scramble(float[] a, Random random) argument
575 scramble(double[] a, Random random) argument
711 build(float[] x, int a, int g, int z, int n, int p, Random random) argument
737 build(double[] x, int a, int g, int z, int n, int p, Random random) argument
993 build(int[] a, int m, Random random) argument
[all...]
/openjdk7/hotspot/src/share/vm/runtime/
H A Dos.cpp687 long os::random() { function in class:os
688 /* standard, well-known linear congruential random generator with
1030 num = os::random();
1032 assert(u >= 0.0 && u <= 1.0, "bad random number!");
1034 // calculate mean and variance of the random sequence

Completed in 271 milliseconds

12345