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

123456789

/openjdk7/jdk/src/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
135 engineInit(SecureRandom random) argument
138 engineInit(AlgorithmParameterSpec params, SecureRandom random) argument
142 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
177 engineInit(SecureRandom random) argument
180 engineInit(AlgorithmParameterSpec params, SecureRandom random) argument
184 engineInit(int keySize, SecureRandom random) argument
202 engineInit(SecureRandom random) argument
205 engineInit(AlgorithmParameterSpec params, SecureRandom random) argument
209 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 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 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 DTlsRsaPremasterSecretGenerator.java48 private SecureRandom random; field in class:TlsRsaPremasterSecretGenerator
53 protected void engineInit(SecureRandom random) { argument
58 SecureRandom random) throws InvalidAlgorithmParameterException {
63 this.random = random;
66 protected void engineInit(int keysize, SecureRandom random) { argument
75 if (random == null) {
76 random = new SecureRandom();
79 random.nextBytes(b);
57 engineInit(AlgorithmParameterSpec params, SecureRandom random) argument
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 DDHKeyPairGenerator.java63 // The size in bits of the random exponent (private value)
67 private SecureRandom random; field in class:DHKeyPairGenerator
80 * @param random the source of randomness
82 public void initialize(int keysize, SecureRandom random) { argument
91 this.random = random;
100 * generator, and optionally the requested size in bits of the random
104 * @param random the source of randomness
110 SecureRandom random) throws InvalidAlgorithmParameterException {
133 this.random
109 initialize(AlgorithmParameterSpec algParams, SecureRandom random) argument
[all...]
H A DDHParameterGenerator.java40 * prime modulus and the size in bits of the random exponent as input.
56 // The size in bits of the random exponent (private value)
60 private SecureRandom random = null; field in class:DHParameterGenerator
68 * @param random the source of randomness
70 protected void engineInit(int keysize, SecureRandom random) { argument
78 this.random = random;
84 * the size of the random exponent, both in bits.
87 * @param random the source of randomness
93 SecureRandom random)
92 engineInit(AlgorithmParameterSpec genParamSpec, SecureRandom random) argument
[all...]
/openjdk7/jdk/src/share/classes/java/security/
H A DAlgorithmParameterGeneratorSpi.java62 * @param random the source of randomness.
64 protected abstract void engineInit(int size, SecureRandom random); argument
71 * @param random the source of randomness.
77 SecureRandom random)
76 engineInit(AlgorithmParameterSpec genParamSpec, SecureRandom random) argument
H A DKeyPairGeneratorSpi.java62 * @param random the source of randomness for this generator.
67 public abstract void initialize(int keysize, SecureRandom random); argument
84 * @param random the source of randomness for this generator.
92 SecureRandom random)
91 initialize(AlgorithmParameterSpec params, SecureRandom random) argument
/openjdk7/jdk/src/share/classes/java/security/interfaces/
H A DDSAKeyPairGenerator.java37 * the random bit source.
77 * @param random the random bit source to use to generate key bits;
83 public void initialize(DSAParams params, SecureRandom random) argument
102 * @param random the random bit source to use to generate key bits;
113 public void initialize(int modlen, boolean genParams, SecureRandom random) argument
/openjdk7/jdk/src/share/classes/javax/crypto/
H A DKeyGeneratorSpi.java49 * @param random the source of randomness for this generator
51 protected abstract void engineInit(SecureRandom random); argument
58 * @param random the source of randomness for this key generator
64 SecureRandom random)
73 * @param random the source of randomness for this key generator
78 protected abstract void engineInit(int keysize, SecureRandom random); argument
63 engineInit(AlgorithmParameterSpec params, SecureRandom random) argument
/openjdk7/jdk/test/sun/security/pkcs11/SecureRandom/
H A DBasic.java42 SecureRandom random;
44 random = SecureRandom.getInstance("PKCS11");
51 random.nextBytes(b);
53 random.setSeed(b);
54 random.nextBytes(b);
/openjdk7/jdk/src/share/classes/sun/security/provider/
H A DDSAKeyPairGenerator.java60 /* The source of random bits to use */
61 private SecureRandom random; field in class:DSAKeyPairGenerator
76 public void initialize(int modlen, SecureRandom random) { argument
78 this.random = random;
88 public void initialize(int modlen, boolean genParams, SecureRandom random) { argument
101 this.random = random;
110 public void initialize(DSAParams params, SecureRandom random) { argument
116 initialize0(spec, random);
129 initialize(AlgorithmParameterSpec params, SecureRandom random) argument
138 initialize0(DSAParameterSpec params, SecureRandom random) argument
173 generateKeyPair(BigInteger p, BigInteger q, BigInteger g, SecureRandom random) argument
204 generateX(SecureRandom random, BigInteger q) argument
[all...]
/openjdk7/jdk/test/javax/crypto/Cipher/
H A DByteBuffers.java43 Random random = new Random();
46 random.nextBytes(t);
49 random.nextBytes(keyBytes);
59 i0.position(random.nextInt(256));
71 o0.position(random.nextInt(256));
77 crypt(cipher, i1, o1, outBytes, random);
78 crypt(cipher, i2, o1, outBytes, random);
79 crypt(cipher, i3, o1, outBytes, random);
80 crypt(cipher, i1, o2, outBytes, random);
81 crypt(cipher, i2, o2, outBytes, random);
87 crypt(Cipher cipher, ByteBuffer in, ByteBuffer out, byte[] outBytes, Random random) argument
[all...]
/openjdk7/jdk/test/javax/crypto/Mac/
H A DByteBuffers.java43 Random random = new Random();
46 random.nextBytes(t);
49 random.nextBytes(keyBytes);
58 b1.position(random.nextInt(256));
63 verify(mac, macValue, b2, random);
69 verify(mac, macValue, b3, random);
74 verify(mac, macValue, b4, random);
79 private static void verify(Mac mac, byte[] macValue, ByteBuffer b, Random random) throws Exception { argument
81 b.limit(random.nextInt(lim));
/openjdk7/jdk/src/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...]
/openjdk7/jdk/test/java/security/MessageDigest/
H A DByteBuffers.java40 Random random = new Random();
43 random.nextBytes(t);
50 b1.position(random.nextInt(256));
55 byte[] d2 = digest(md, b2, random);
64 byte[] d3 = digest(md, b3, random);
72 byte[] d4 = digest(md, b4, random);
79 private static byte[] digest(MessageDigest md, ByteBuffer b, Random random) throws Exception { argument
81 b.limit(random.nextInt(lim));
/openjdk7/jdk/test/java/security/Signature/
H A DByteBuffers.java40 Random random = new Random();
43 random.nextBytes(t);
58 b1.position(random.nextInt(256));
63 verify(sig, signature, b2, random);
69 verify(sig, signature, b3, random);
74 verify(sig, signature, b4, random);
79 private static void verify(Signature sig, byte[] signature, ByteBuffer b, Random random) throws Exception { argument
81 b.limit(random.nextInt(lim));
/openjdk7/jdk/test/sun/security/pkcs11/MessageDigest/
H A DByteBuffers.java49 Random random = new Random();
52 random.nextBytes(t);
59 b1.position(random.nextInt(256));
64 byte[] d2 = digest(md, b2, random);
73 byte[] d3 = digest(md, b3, random);
81 byte[] d4 = digest(md, b4, random);
88 private static byte[] digest(MessageDigest md, ByteBuffer b, Random random) throws Exception { argument
90 b.limit(random.nextInt(lim));
/openjdk7/jdk/test/sun/security/pkcs11/Signature/
H A DByteBuffers.java44 Random random = new Random();
47 random.nextBytes(t);
62 b1.position(random.nextInt(256));
67 verify(sig, signature, b2, random);
73 verify(sig, signature, b3, random);
78 verify(sig, signature, b4, random);
83 private static void verify(Signature sig, byte[] signature, ByteBuffer b, Random random) throws Exception { argument
85 b.limit(random.nextInt(lim));
/openjdk7/jdk/src/share/classes/sun/security/ec/
H A DECKeyPairGenerator.java54 private SecureRandom random; field in class:ECKeyPairGenerator
72 public void initialize(int keySize, SecureRandom random) { argument
80 this.random = random;
85 public void initialize(AlgorithmParameterSpec params, SecureRandom random) argument
107 this.random = random;
119 if (random == null) {
120 random = JCAUtil.getSecureRandom();
122 random
[all...]
/openjdk7/jdk/test/java/lang/reflect/Proxy/
H A DBoxing.java71 Random random = new Random(42); // ensure consistent test domain
79 b = (byte) random.nextInt();
80 c = (char) random.nextInt();
81 d = random.nextDouble();
82 f = random.nextFloat();
83 i = random.nextInt();
84 j = random.nextLong();
85 s = (short) random.nextInt();
86 z = random.nextBoolean();

Completed in 45 milliseconds

123456789