Searched refs:seed (Results 1 - 25 of 125) sorted by relevance

12345

/openjdk10/jdk/test/lib/testlibrary/jdk/testlibrary/
H A DRandomFactory.java30 * Factory class which generates and prints to STDOUT a long-valued seed
41 * Attempt to obtain the seed from the value of the "seed" property.
42 * @return The seed or {@code null} if the "seed" property was not set or
46 Long seed = null;
51 seed = Long.valueOf(System.getProperty("seed"));
53 // do nothing: seed is still null
56 return seed;
[all...]
/openjdk10/test/lib/jdk/test/lib/
H A DRandomFactory.java30 * Factory class which generates and prints to STDOUT a long-valued seed
36 * Attempt to obtain the seed from the value of the "seed" property.
37 * @return The seed or {@code null} if the "seed" property was not set or
41 Long seed = null;
46 seed = Long.valueOf(System.getProperty("seed"));
48 // do nothing: seed is still null
51 return seed;
[all...]
/openjdk10/jdk/src/jdk.crypto.mscapi/windows/classes/sun/security/mscapi/
H A DPRNG.java46 private static native byte[] generateSeed(int length, byte[] seed); argument
55 * Reseeds this random object. The given seed supplements, rather than
56 * replaces, the existing seed. Thus, repeated calls are guaranteed
59 * @param seed the seed.
62 protected void engineSetSeed(byte[] seed) { argument
63 if (seed != null) {
64 generateSeed(-1, seed);
83 * Returns the given number of seed bytes. This call may be used to
84 * seed othe
[all...]
/openjdk10/jdk/src/java.base/share/classes/sun/security/internal/spec/
H A DTlsPrfParameterSpec.java49 private final byte[] seed; field in class:TlsPrfParameterSpec
60 * @param seed the random seed to use in the calculation
69 * @throws NullPointerException if label or seed is null
73 byte[] seed, int outputLength,
75 if ((label == null) || (seed == null)) {
76 throw new NullPointerException("label and seed must not be null");
83 this.seed = seed.clone();
111 * Returns a copy of the seed t
72 TlsPrfParameterSpec(SecretKey secret, String label, byte[] seed, int outputLength, String prfHashAlg, int prfHashLength, int prfBlockSize) argument
[all...]
/openjdk10/hotspot/src/share/vm/classfile/
H A DaltHashing.hpp47 static juint murmur3_32(juint seed, const int* data, int len);
51 static juint murmur3_32(juint seed, const jbyte* data, int len);
52 static juint murmur3_32(juint seed, const jchar* data, int len);
H A DaltHashing.cpp61 juint AltHashing::murmur3_32(juint seed, const jbyte* data, int len) { argument
62 juint h1 = seed;
122 juint AltHashing::murmur3_32(juint seed, const jchar* data, int len) { argument
123 juint h1 = seed;
169 // Hash used for the seed.
170 juint AltHashing::murmur3_32(juint seed, const int* data, int len) { argument
171 juint h1 = seed;
/openjdk10/jdk/test/java/nio/charset/coders/
H A DBashStreams.java48 CharacterGenerator(long seed, String csn, int limit) { argument
49 rand = new Random(seed);
127 Sink(String csn, long seed) { argument
129 this.cg = new CharacterGenerator(seed, csn, Integer.MAX_VALUE);
177 static void testWrite(String csn, int limit, long seed, Writer w) argument
180 Random rand = new Random(seed);
181 CharacterGenerator cg = new CharacterGenerator(seed, csn,
199 static void testStreamWrite(String csn, int limit, long seed) argument
203 testWrite(csn, limit, seed,
204 new OutputStreamWriter(new Sink(csn, seed), cs
207 testChannelWrite(String csn, int limit, long seed) argument
231 Source(String csn, long seed, int limit) argument
298 testRead(String csn, int limit, long seed, int max, Reader rd) argument
336 testStreamRead(String csn, int limit, long seed, int max) argument
344 testChannelRead(String csn, int limit, long seed, int max) argument
355 test(String csn, int limit, long seed, int max) argument
[all...]
/openjdk10/jdk/src/java.base/share/classes/java/security/spec/
H A DEllipticCurve.java48 private final byte[] seed; field in class:EllipticCurve
89 * {@code b}, and the {@code seed} used for curve generation.
93 * @param seed the bytes used during curve generation for later
102 BigInteger b, byte[] seed) {
117 if (seed != null) {
118 this.seed = seed.clone();
120 this.seed = null;
153 * Returns the seeding bytes {@code seed} used
155 * @return the seeding bytes {@code seed}
101 EllipticCurve(ECField field, BigInteger a, BigInteger b, byte[] seed) argument
[all...]
/openjdk10/jdk/src/java.base/share/classes/jdk/internal/jimage/
H A DImageStringsReader.java63 public static int hashCode(String s, int seed) { argument
64 return unmaskedHashCode(s, seed) & POSITIVE_MASK;
71 public static int hashCode(String module, String name, int seed) { argument
72 seed = unmaskedHashCode("/", seed);
73 seed = unmaskedHashCode(module, seed);
74 seed = unmaskedHashCode("/", seed);
75 seed
79 unmaskedHashCode(String s, int seed) argument
[all...]
/openjdk10/jdk/test/sun/security/mscapi/
H A DSmallPrimeExponentP.java30 * The seed 76 has the fastest test execution now (only 5 rounds) and is
49 long seed = Long.parseLong(argv[0]);
50 System.out.println("Seed for SecureRandom = " + seed + "L");
56 ckg.setRandom(new MySecureRandom(seed));
103 public MySecureRandom(long seed) { argument
104 random = new Random(seed);
/openjdk10/jdk/test/java/nio/channels/FileChannel/
H A DTransfers.java68 private static void writeRandomBytes(long seed, argument
72 Random r = new Random(seed);
100 long seed)
104 Random r = new Random(seed);
178 protected final long seed; field in class:Transfers.Source
181 Source(int size, long seed, String name) { argument
183 this.seed = seed;
204 FileSource(int size, long seed) throws IOException { argument
205 super(size, seed, "FileChanne
99 checkRandomBytes(FileChannel fc, int off, int len, long seed) argument
235 UserSource(int size, long seed) argument
276 protected final long seed; field in class:Transfers.Target
279 Target(int size, long seed, String name) argument
302 FileTarget(int size, long seed) argument
331 UserTarget(int size, long seed) argument
422 testTo(long seed, FileChannel fc, int off, int len, Target tgt) argument
453 testFrom(long seed, Source src, FileChannel fc, int off, int len) argument
[all...]
/openjdk10/hotspot/test/testlibrary/jittester/src/jdk/test/lib/jittester/utils/
H A DPseudoRandom.java45 SEED_FIELD = Random.class.getDeclaredField("seed");
48 throw new Error("Can't get seed field: " + roe, roe);
52 public static void reset(String seed) { argument
53 if (seed == null || seed.length() == 0) {
54 seed = String.valueOf(System.currentTimeMillis());
56 random = new java.util.Random(seed.hashCode());
124 throw new Error("Can't get seed: " + roe, roe);
128 public static void setCurrentSeed(long seed) { argument
131 seedObject.set(seed);
[all...]
/openjdk10/jdk/src/java.base/share/classes/sun/security/provider/
H A DSecureRandom.java38 * <p>Note that if a seed is not provided, we attempt to provide sufficient
39 * seed bytes to completely randomize the internal state of the generator
40 * (20 bytes). However, our seed generation algorithm has not been thoroughly
68 * to provide sufficient seed bytes to completely randomize the internal
69 * state of the generator (20 bytes). Note, however, that our seed
73 * it may take several seconds of CPU time to seed the generator, depending
76 * seed bits.
84 * with a given seed from the SeedGenerator.
86 * @param seed the seed
88 SecureRandom(byte[] seed) argument
96 init(byte[] seed) argument
151 engineSetSeed(byte[] seed) argument
[all...]
/openjdk10/jaxws/src/java.xml.bind/share/classes/com/sun/xml/internal/bind/v2/model/impl/
H A DValuePropertyInfoImpl.java40 PropertySeed<TypeT,ClassDeclT,FieldT,MethodT> seed) {
42 super(parent,seed);
38 ValuePropertyInfoImpl( ClassInfoImpl<TypeT,ClassDeclT,FieldT,MethodT> parent, PropertySeed<TypeT,ClassDeclT,FieldT,MethodT> seed) argument
H A DPropertyInfoImpl.java69 protected final PropertySeed<T,C,F,M> seed; field in class:PropertyInfoImpl
84 this.seed = spi;
97 MimeType mt = Util.calcExpectedMediaType(seed,parent.builder);
101 seed.readAnnotation(XmlMimeType.class)
106 this.inlineBinary = seed.hasAnnotation(XmlInlineBinaryData.class);
108 T t = seed.getRawType();
124 XmlAttachmentRef xsa = seed.readAnnotation(XmlAttachmentRef.class);
133 xjta = seed.readAnnotation(XmlJavaTypeAdapter.class);
149 this.schemaType = Util.calcSchemaType(reader(),seed,parent.clazz,
166 return seed
[all...]
H A DRuntimeReferencePropertyInfoImpl.java45 public RuntimeReferencePropertyInfoImpl(RuntimeClassInfoImpl classInfo, PropertySeed<Type,Class,Field,Method> seed) { argument
46 super(classInfo,seed);
47 Accessor rawAcc = ((RuntimeClassInfoImpl.RuntimePropertySeed)seed).getAccessor();
H A DRuntimeElementPropertyInfoImpl.java47 RuntimeElementPropertyInfoImpl(RuntimeClassInfoImpl classInfo, PropertySeed<Type,Class,Field,Method> seed) { argument
48 super(classInfo, seed);
49 Accessor rawAcc = ((RuntimeClassInfoImpl.RuntimePropertySeed)seed).getAccessor();
H A DRuntimeMapPropertyInfoImpl.java44 RuntimeMapPropertyInfoImpl(RuntimeClassInfoImpl classInfo, PropertySeed<Type,Class,Field,Method> seed) { argument
45 super(classInfo, seed);
46 this.acc = ((RuntimeClassInfoImpl.RuntimePropertySeed)seed).getAccessor();
H A DGetterSetterPropertySeed.java80 String seed = parent.nav().getMethodName(m);
81 String lseed = seed.toLowerCase();
83 return camelize(seed.substring(3));
85 return camelize(seed.substring(2));
86 return seed;
H A DSingleTypePropertyInfoImpl.java59 public SingleTypePropertyInfoImpl(ClassInfoImpl<T,C,F,M> classInfo, PropertySeed<T,C,F,M> seed) { argument
60 super(classInfo, seed);
62 Accessor rawAcc = ((RuntimeClassInfoImpl.RuntimePropertySeed)seed).getAccessor();
94 seed
98 if(!isCollection() && seed.hasAnnotation(XmlList.class)) {
/openjdk10/jdk/src/java.base/share/classes/java/security/
H A DSecureRandomSpi.java111 * Reseeds this random object with the given seed. The seed supplements,
112 * rather than replaces, the existing seed. Thus, repeated calls
115 * @param seed the seed.
117 protected abstract void engineSetSeed(byte[] seed); argument
160 * Returns the given number of seed bytes. This call may be used to
161 * seed other random number generators.
163 * @param numBytes the number of seed bytes to generate.
165 * @return the seed byte
[all...]
/openjdk10/jdk/src/java.base/share/classes/com/sun/crypto/provider/
H A DTlsPrfGenerator.java167 byte[] seed, int outputLength,
174 return doTLS12PRF(secret, labelBytes, seed, outputLength,
179 byte[] seed, int outputLength,
209 // P_HASH(Secret, label + seed)
211 seed, output, ipad, opad);
217 byte[] seed, int outputLength) throws NoSuchAlgorithmException,
221 return doTLS10PRF(secret, labelBytes, seed, outputLength, md5, sha);
225 byte[] seed, int outputLength, MessageDigest md5,
250 // P_MD5(S1, label + seed)
257 expand(md5, 16, secKey, 0, keyLen, labelBytes, seed, outpu
166 doTLS12PRF(byte[] secret, byte[] labelBytes, byte[] seed, int outputLength, String prfHash, int prfHashLength, int prfBlockSize) argument
178 doTLS12PRF(byte[] secret, byte[] labelBytes, byte[] seed, int outputLength, MessageDigest mdPRF, int mdPRFLen, int mdPRFBlockSize) argument
216 doTLS10PRF(byte[] secret, byte[] labelBytes, byte[] seed, int outputLength) argument
224 doTLS10PRF(byte[] secret, byte[] labelBytes, byte[] seed, int outputLength, MessageDigest md5, MessageDigest sha) argument
284 expand(MessageDigest digest, int hmacSize, byte[] secret, int secOff, int secLen, byte[] label, byte[] seed, byte[] output, byte[] pad1, byte[] pad2) argument
[all...]
/openjdk10/jdk/test/java/security/spec/
H A DEllipticCurveMatch.java27 * @summary Check EllipticCurve.equals() does not compare seed value of curve.
49 byte[] seed = new byte[12];
50 rand.nextBytes(seed);
53 seed);
/openjdk10/jdk/src/jdk.crypto.cryptoki/share/classes/sun/security/pkcs11/
H A DP11SecureRandom.java35 * application specified seed, we create a SHA1PRNG that we mix with in that
89 protected synchronized void engineSetSeed(byte[] seed) { argument
90 if (seed == null) {
91 throw new NullPointerException("seed must not be null");
96 token.p11.C_SeedRandom(session.id(), seed);
98 // cannot set seed
99 // let a SHA1PRNG use that seed instead
102 random.setSeed(seed);
108 random.setSeed(seed);
/openjdk10/jdk/src/java.security.jgss/share/classes/sun/security/krb5/internal/crypto/
H A Dcrc32.java38 private int seed; field in class:crc32
69 result = int2quad(seed);
79 result = int2quad(seed);
107 engineUpdate(input, seed, 1);
194 seed = 0;
198 int result = seed;
201 seed = result;
233 public static int byte2crc32sum(int seed, byte[] data, int size) { argument
234 int crc = seed;
241 public static int byte2crc32sum(int seed, byt argument
[all...]

Completed in 374 milliseconds

12345