/openjdk10/jdk/src/java.base/share/classes/com/sun/crypto/provider/ |
H A D | KeyGeneratorCore.java | 58 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 D | AESKeyGenerator.java | 47 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 D | HmacSHA1KeyGenerator.java | 45 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 D | BlowfishKeyGenerator.java | 45 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 D | HmacMD5KeyGenerator.java | 45 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 D | DESedeKeyGenerator.java | 46 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 D | DESKeyGenerator.java | 46 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 D | TlsRsaPremasterSecretGenerator.java | 49 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 D | DHParameterGenerator.java | 40 * 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 D | DHKeyPairGenerator.java | 63 // 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 D | KeyPairGeneratorSpi.java | 69 * @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 D | AlgorithmParameterGeneratorSpi.java | 68 * @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 D | DSAKeyPairGenerator.java | 37 * 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 D | uniform_random.js | 32 // 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 D | KeyGeneratorSpi.java | 61 * @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 D | DSAKeyPairGenerator.java | 61 /* 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 D | PseudoRandom.java | 36 * 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 D | Basic.java | 44 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 D | ByteBuffers.java | 44 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 D | ApiTest.java | 68 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 D | ByteBuffers.java | 44 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 D | ShapedByAPI.java | 73 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 D | JDK-8080182.js | 33 return (Math.random() * 100).toString();
|
/openjdk10/jdk/src/java.base/share/classes/sun/security/rsa/ |
H A D | RSAKeyPairGenerator.java | 38 * 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 D | ByteBuffers.java | 41 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));
|