Searched refs:strength (Results 1 - 17 of 17) sorted by relevance

/openjdk9/jdk/src/java.base/share/classes/java/security/
H A DDrbgParameters.java58 * <li> highest security strength.
68 * <li> required security strength,
91 * with the effective instantiated strength and prediction resistance flag
160 * // guaranteed to support 112 bits of security strength.
165 * // instantiated with a smaller strength with no prediction resistance
174 * // that instance is guaranteed to support 256 bits of security strength
208 * For each combination, the security strength can be requested from 112
209 * up to the highest strength it supports. Both reseeding and prediction
219 * requested strength of 128 bits, no prediction resistance request, and
346 private final int strength; field in class:DrbgParameters.Instantiation
389 Instantiation(int strength, Capability capability, byte[] personalizationString) argument
422 private final int strength; field in class:DrbgParameters.NextBytes
456 NextBytes(int strength, boolean predictionResistance, byte[] additionalInput) argument
520 instantiation(int strength, Capability capability, byte[] personalizationString) argument
538 nextBytes(int strength, boolean predictionResistance, byte[] additionalInput) argument
[all...]
/openjdk9/jdk/test/java/text/Collator/
H A DJapaneseTest.java292 for (int strength = 0; strength < 3; strength++) {// See strength_name.
293 // System.err.println("\n" + locales[l] + ": " + strength_name[strength] + " --- " + decomp_name[decomp]);
295 col.setStrength(strength);
296 doCompare(compData1, results1[strength][decomp], strength, decomp);
297 doCompare(compData2, results2[strength][decomp], strength, decomp);
298 doCompare(compData3, results3[strength][decom
312 doCompare(String[][] s, int expectedValue, int strength, int decomp) argument
[all...]
H A DCollatorTest.java98 protected void doTest(Collator col, int strength, argument
113 col.setStrength(strength);
/openjdk9/jdk/test/sun/security/provider/DSA/
H A DSupportedDSAParamGen.java67 int strength = genParam.getPrimePLength();
68 if (strength != valueL) {
70 "P: Expected " + strength + " but actual " + valueL);
71 throw new Exception("Wrong P strength");
75 strength = genParam.getSubprimeQLength();
76 if (strength != valueN) {
78 "Q: Expected " + strength + " but actual " + valueN);
79 throw new Exception("Wrong Q strength");
H A DTestAlgParameterGenerator.java39 int strength) throws Exception {
46 if (strength != valueL) {
47 System.out.println("Expected " + strength + " but actual " + valueL);
48 throw new RuntimeException("Wrong P strength");
61 int strength = genParam.getPrimePLength();
62 if (strength != valueL) {
63 System.out.println("P: Expected " + strength + " but actual " + valueL);
64 throw new RuntimeException("Wrong P strength");
67 strength = genParam.getSubprimeQLength();
68 if (strength !
38 checkParamStrength(AlgorithmParameters param, int strength) argument
[all...]
/openjdk9/jdk/src/java.base/share/classes/sun/security/provider/
H A DMoreDrbgParameters.java45 final int strength; field in class:MoreDrbgParameters
62 * the algorithm will be decided by strength.
77 this.strength = config.getStrength();
84 return mech + "," + algorithm + "," + usedf + "," + strength
H A DDRBG.java45 * strength depends on algorithm) and if we write a full string there
53 * 4. Default strength set in AbstractDrbg, but the effective
84 int strength = -1;
133 // either an algorithm name or a strength
138 "strength in " + PROP_NAME +
141 checkTwice(strength >= 0, "strength");
142 strength = tmp;
157 params = DrbgParameters.instantiation(m.strength,
181 strength
[all...]
H A DDSAParameterGenerator.java75 * Initializes this parameter generator for a certain strength
78 * @param strength the strength (size of prime) in bits
82 protected void engineInit(int strength, SecureRandom random) { argument
83 if ((strength >= 512) && (strength <= 1024) && (strength % 64 == 0)) {
85 } else if (strength == 2048) {
87 } else if (strength == 3072) {
91 "Unexpected strength (siz
[all...]
H A DAbstractDrbg.java88 * Default strength of a DRBG instance if it is not configured.
182 * Security strength for this instance. Must be assigned in
184 * strength. Might be smaller than the highest strength
191 * The real strength is based on it. Do not modify it in a mechanism.
247 * Decides what algorithm and strength to use (SHA-256 or AES-256,
252 * {@link #DEFAULT_STRENGTH} to decide which algorithm and strength to use.
256 * the algorithm will use the strength (an exception will be thrown if
257 * the strength is not supported), otherwise, the smaller one of
258 * the highest supported strength o
[all...]
/openjdk9/jdk/src/java.base/share/classes/java/text/
H A DCollator.java86 * You can set a <code>Collator</code>'s <em>strength</em> property
98 * //Get the Collator for US English and set its strength to PRIMARY
133 * Collator strength value. When set, only PRIMARY differences are
142 * Collator strength value. When set, only SECONDARY and above differences are
152 * Collator strength value. When set, only TERTIARY and above differences are
162 * Collator strength value. When set, all differences are
336 * Returns this Collator's strength property. The strength property determines
339 * @return this Collator's current strength property.
348 return strength;
490 private int strength = 0; field in class:Collator
[all...]
H A DPatternEntry.java69 * this method is ill-defined and ignores strength.
92 * Gets the strength of the entry.
95 return strength;
120 if (strength == Collator.PRIMARY || lastEntry != null)
133 switch (strength) {
188 PatternEntry(int strength, argument
192 this.strength = strength;
303 int strength = UNSET; field in class:PatternEntry
H A DMergeCollation.java230 If the strength is RESET, then just change the lastEntry to
239 // strings that are canonically equivalent is normalized). If so, and the strength
244 if (newEntry.strength != Collator.IDENTICAL
245 && newEntry.strength != PatternEntry.RESET) {
256 if (newEntry.strength != PatternEntry.RESET) {
308 if (entry.strength != PatternEntry.RESET) {
/openjdk9/jdk/src/java.security.sasl/share/classes/com/sun/security/sasl/util/
H A DAbstractSaslImpl.java55 protected byte[] strength; // ordered list of cipher strengths field in class:AbstractSaslImpl
94 strength = parseStrength(prop=(String)props.get(Sasl.STRENGTH));
96 "SASLIMPL04:Preferred strength property: {0}", prop);
97 if (logger.isLoggable(Level.FINE) && strength.length > 0) {
99 for (int i = 0; i < strength.length; i++) {
100 str.append(Byte.toString(strength[i]));
137 strength = STRENGTH_MASKS;
209 private static final byte[] parseStrength(String strength) argument
211 if (strength == null) {
215 return parseProp(Sasl.STRENGTH, strength, STRENGTH_TOKEN
[all...]
/openjdk9/jdk/test/java/security/SecureRandom/
H A DApiTest.java108 for (int strength : new int[]{-1, 0, 1, 223, 224,
114 = DrbgParameters.instantiation(strength, cp, pr);
175 int strength = ((Instantiation) param).getStrength();
183 if (strength > 192) {
191 if (strength > 256) {
200 if (strength > algoStrength
/openjdk9/jaxp/src/java.xml/share/classes/com/sun/org/apache/xml/internal/utils/
H A DStringComparable.java196 private static final int getMask(final int strength) { argument
197 switch (strength) {
206 //get collation element with given strength
207 // from the element with max strength
/openjdk9/jdk/src/java.security.sasl/share/classes/com/sun/security/sasl/digest/
H A DDigestMD5Client.java72 * javax.security.sasl.strength
73 * auth-conf strength; list of high, medium, low; default is highest
84 * setting of the javax.security.sasl.strength property.
506 // cipher options. Leverage strength array against what is
512 "a strength level for 'auth-conf'");
518 * Steps through the ordered 'strength' array, and compares it with
520 * the best possible cipher based on the strength preference and the
529 for (int i = 0; i < strength.length; i++) {
530 if ((s=strength[i]) != 0) {
/openjdk9/langtools/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/util/
H A DUtils.java1611 * two Strings using a Collator strength of "TERTIARY".
1624 * compares two Strings using a Collator strength of "SECONDARY".
1655 private DocCollator(Locale locale, int strength) { argument
1657 instance.setStrength(strength);

Completed in 213 milliseconds