/openjdk7/jdk/test/java/security/MessageDigest/ |
H A D | ByteBuffers.java | 40 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/javax/smartcardio/ |
H A D | TestCommandAPDU.java | 37 private static final Random random = new Random(); field in class:TestCommandAPDU 42 random.nextBytes(data);
|
/openjdk7/jdk/src/share/classes/java/security/ |
H A D | AlgorithmParameterGeneratorSpi.java | 62 * @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 D | KeyPairGeneratorSpi.java | 62 * @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
|
H A D | AlgorithmParameterGenerator.java | 59 * random exponent, both specified in number of bits. 293 * @param random the source of randomness. 295 public final void init(int size, SecureRandom random) { argument 296 paramGenSpi.engineInit(size, random); 324 * @param random the source of randomness. 330 SecureRandom random) 332 paramGenSpi.engineInit(genParamSpec, random); 329 init(AlgorithmParameterSpec genParamSpec, SecureRandom random) argument
|
/openjdk7/jdk/src/share/classes/java/security/interfaces/ |
H A D | DSAKeyPairGenerator.java | 37 * 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 D | KeyGeneratorSpi.java | 49 * @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
|
H A D | KeyAgreementSpi.java | 70 * <p> If the key agreement algorithm requires random bytes, it gets them 71 * from the given source of randomness, <code>random</code>. 73 * algorithm implementation does not require any random bytes, 74 * <code>random</code> is ignored. 79 * @param random the source of randomness 85 protected abstract void engineInit(Key key, SecureRandom random) argument 96 * @param random the source of randomness 105 SecureRandom random) 104 engineInit(Key key, AlgorithmParameterSpec params, SecureRandom random) argument
|
/openjdk7/jdk/src/share/classes/com/sun/crypto/provider/ |
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 | 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 | 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 | 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 | 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 | 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 | DHKeyPairGenerator.java | 63 // 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 D | DHParameterGenerator.java | 40 * 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/test/com/sun/crypto/provider/Cipher/RSA/ |
H A D | TestOAEP.java | 45 private static Random random = new Random(); field in class:TestOAEP 115 random.nextBytes(data);
|
/openjdk7/jdk/src/share/classes/sun/security/pkcs11/wrapper/ |
H A D | CK_SSL3_MASTER_KEY_DERIVE_PARAMS.java | 84 public CK_SSL3_MASTER_KEY_DERIVE_PARAMS(CK_SSL3_RANDOM_DATA random, CK_VERSION version) { argument 85 RandomInfo = random;
|
/openjdk7/jdk/src/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...] |
/openjdk7/jdk/test/java/security/Signature/ |
H A D | ByteBuffers.java | 40 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/javax/crypto/Cipher/ |
H A D | ByteBuffers.java | 43 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 D | ByteBuffers.java | 43 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/test/sun/security/pkcs11/MessageDigest/ |
H A D | ByteBuffers.java | 49 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 D | ByteBuffers.java | 44 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/test/sun/security/pkcs11/ec/ |
H A D | ReadCertificates.java | 47 private static SecureRandom random; field in class:ReadCertificates 68 random = new SecureRandom(); 115 // try some random invalid signatures to make sure we get the correct 140 int n = random.nextInt(certs.size());
|