Searched refs:SecureRandom (Results 26 - 50 of 157) sorted by relevance

1234567

/openjdk7/jdk/test/sun/security/pkcs11/SecureRandom/
H A DBasic.java27 * @summary basic test for PKCS#11 SecureRandom
42 SecureRandom random;
44 random = SecureRandom.getInstance("PKCS11");
46 System.out.println("Provider " + p + " does not support SecureRandom, skipping");
/openjdk7/jdk/src/share/classes/com/sun/net/ssl/
H A DSSLContextSpi.java57 SecureRandom sr) throws KeyManagementException;
/openjdk7/jdk/src/share/classes/sun/security/provider/
H A DDSAKeyPairGenerator.java31 import java.security.SecureRandom;
61 private SecureRandom random;
76 public void initialize(int modlen, SecureRandom random) {
88 public void initialize(int modlen, boolean genParams, SecureRandom random) {
110 public void initialize(DSAParams params, SecureRandom random) {
129 public void initialize(AlgorithmParameterSpec params, SecureRandom random)
138 private void initialize0(DSAParameterSpec params, SecureRandom random) {
174 SecureRandom random) {
204 private BigInteger generateX(SecureRandom random, BigInteger q) {
H A DSecureRandom.java54 public final class SecureRandom extends SecureRandomSpi class in inherits:SecureRandomSpi,java.io.Serializable
77 public SecureRandom() { method in class:SecureRandom
87 private SecureRandom(byte seed[]) { method in class:SecureRandom
113 * the empty constructor <a href = "#SecureRandom">SecureRandom</a>
177 private static final SecureRandom seeder;
184 seeder = new SecureRandom(SeedGenerator.getSystemEntropy());
H A DParameterCache.java32 import java.security.SecureRandom;
78 SecureRandom random)
94 SecureRandom random)
113 * DSAKeyPairGenerator.initialize(int, boolean, SecureRandom).
116 SecureRandom random)
/openjdk7/jdk/test/javax/crypto/NullCipher/
H A DTestNPE.java33 import java.security.SecureRandom;
43 new SecureRandom().nextBytes(BYTES);
50 nc.init(Cipher.ENCRYPT_MODE, (Certificate) null, (SecureRandom) null);
55 (SecureRandom) null);
57 (SecureRandom) null);
58 nc.init(Cipher.ENCRYPT_MODE, (Key) null, (SecureRandom) null);
/openjdk7/jdk/test/java/security/Security/ClassLoaderDeadlock/
H A DDeadlock.java35 SecureRandom random = SecureRandom.getInstance("SHA1PRNG");
/openjdk7/jdk/test/sun/security/pkcs11/Secmod/
H A DCrypto.java53 SecureRandom random = new SecureRandom();
/openjdk7/jdk/src/share/classes/java/security/
H A DAlgorithmParameterGenerator.java275 * To create the parameters, the <code>SecureRandom</code>
279 * <code>SecureRandom</code>, a system-provided source of randomness is
285 paramGenSpi.engineInit(size, new SecureRandom());
295 public final void init(int size, SecureRandom random) {
302 * To generate the parameters, the <code>SecureRandom</code>
306 * <code>SecureRandom</code>, a system-provided source of randomness is
316 paramGenSpi.engineInit(genParamSpec, new SecureRandom());
330 SecureRandom random)
/openjdk7/jdk/test/sun/security/ssl/com/sun/net/ssl/SSLSecurity/
H A DComSSLContextImpl.java34 TrustManager[] tm, SecureRandom sr) throws KeyManagementException {
H A DJavaxSSLContextImpl.java34 TrustManager[] tm, SecureRandom sr) throws KeyManagementException {
/openjdk7/jdk/src/share/classes/java/rmi/dgc/
H A DVMID.java29 import java.security.SecureRandom;
58 SecureRandom secureRandom = new SecureRandom();
/openjdk7/jdk/src/share/classes/javax/crypto/
H A DNullCipherSpi.java69 protected void engineInit(int mode, Key key, SecureRandom random) {}
73 SecureRandom random) {}
77 SecureRandom random) {}
/openjdk7/jdk/src/share/classes/sun/security/ssl/
H A DKerberosClientKeyExchange.java34 import java.security.SecureRandom;
77 SecureRandom rand) throws IOException {
87 ProtocolVersion clientVersion, SecureRandom rand,
119 SecureRandom rand) throws IOException {
127 ProtocolVersion clientVersion, SecureRandom rand,
/openjdk7/jdk/src/share/classes/java/rmi/server/
H A DObjID.java34 import java.security.SecureRandom;
89 private static final SecureRandom secureRandom = new SecureRandom();
/openjdk7/jdk/src/share/classes/com/sun/crypto/provider/
H A DDHKeyPairGenerator.java67 private SecureRandom random;
82 public void initialize(int keysize, SecureRandom random) {
110 SecureRandom random) throws InvalidAlgorithmParameterException {
H A DDHParameterGenerator.java60 private SecureRandom random = null;
70 protected void engineInit(int keysize, SecureRandom random) {
93 SecureRandom random)
/openjdk7/jdk/src/share/classes/sun/security/pkcs11/
H A DP11TlsRsaPremasterSecretGenerator.java70 protected void engineInit(SecureRandom random) {
75 SecureRandom random) throws InvalidAlgorithmParameterException {
82 protected void engineInit(int keysize, SecureRandom random) {
H A DP11SecureRandom.java36 * SecureRandom implementation class. Some tokens support only
41 * Note that since SecureRandom is thread safe, we only need one
59 private volatile SecureRandom mixRandom;
102 SecureRandom random = mixRandom;
108 random = SecureRandom.getInstance("SHA1PRNG");
159 SecureRandom random = mixRandom;
/openjdk7/jdk/test/java/security/KeyPairGenerator/
H A DFailover.java129 public void initialize(int keysize, SecureRandom random) {
134 SecureRandom random) throws InvalidAlgorithmParameterException {
147 public void initialize(int keysize, SecureRandom random) {
156 SecureRandom random) throws InvalidAlgorithmParameterException {
/openjdk7/jdk/test/java/security/Signature/
H A DTestInitSignWithMyOwnRandom.java28 * Signature.initSign(PrivateKey, SecureRandom) is used.
54 class TestRandomSource extends SecureRandom {
/openjdk7/jdk/test/javax/crypto/JceSecurity/
H A DSunJCE_BC_LoadOrdering.java54 keyGen.init(new SecureRandom());
/openjdk7/jdk/src/share/classes/com/sun/org/apache/xml/internal/security/algorithms/
H A DSignatureAlgorithmSpi.java24 import java.security.SecureRandom;
102 * Proxy method for {@link java.security.Signature#initSign(java.security.PrivateKey, java.security.SecureRandom)}
110 Key signingKey, SecureRandom secureRandom) throws XMLSignatureException;
/openjdk7/jdk/src/windows/classes/sun/security/mscapi/
H A DRSAKeyPairGenerator.java61 public void initialize(int keySize, SecureRandom random) {
75 public void initialize(AlgorithmParameterSpec params, SecureRandom random)
/openjdk7/jdk/test/com/sun/crypto/provider/Cipher/DES/
H A DFlushBug.java42 SecureRandom sr = new SecureRandom();

Completed in 49 milliseconds

1234567