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

12345

/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/
H A DKeyGenerationParameters.java11 private int strength; field in class:KeyGenerationParameters
15 * and a strength (in bits).
18 * @param strength the size, in bits, of the keys we want to produce.
22 int strength)
25 this.strength = strength;
40 * return the bit strength for keys produced by this generator,
42 * @return the strength of the keys this generator produces (in bits).
46 return strength;
20 KeyGenerationParameters( SecureRandom random, int strength) argument
H A DCipherKeyGenerator.java11 protected int strength; field in class:CipherKeyGenerator
22 this.strength = (param.getStrength() + 7) / 8;
32 byte[] key = new byte[strength];
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/generators/
H A DDESedeKeyGenerator.java12 * initialise the key generator - if strength is set to zero
14 * strength can be 128 or 192 (or 112 or 168 if you don't count
24 this.strength = (param.getStrength() + 7) / 8;
26 if (strength == 0 || strength == (168 / 8))
28 strength = DESedeParameters.DES_EDE_KEY_LENGTH;
30 else if (strength == (112 / 8))
32 strength = 2 * DESedeParameters.DES_KEY_LENGTH;
34 else if (strength != DESedeParameters.DES_EDE_KEY_LENGTH
35 && strength !
[all...]
H A DDESKeyGenerator.java11 * initialise the key generator - if strength is set to zero
13 * strength can be 64 or 56 bits (if you don't count the parity bits).
22 if (strength == 0 || strength == (56 / 8))
24 strength = DESParameters.DES_KEY_LENGTH;
26 else if (strength != DESParameters.DES_KEY_LENGTH)
H A DRSAKeyPairGenerator.java37 // p and q values should have a length of half the strength in bits
39 int strength = param.getStrength();
40 int pbitlength = (strength + 1) / 2;
41 int qbitlength = strength - pbitlength;
42 int mindiffbits = (strength / 2) - 100;
44 if (mindiffbits < strength / 3)
46 mindiffbits = strength / 3;
49 int minWeight = strength >> 2;
51 // d lower bound is 2^(strength / 2)
52 BigInteger dLowerBound = BigInteger.valueOf(2).pow(strength /
[all...]
/external/webp/src/utils/
H A Dquant_levels_dec.h29 int strength);
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dsa/
H A DAlgorithmParameterGeneratorSpi.java20 protected int strength = 1024; field in class:AlgorithmParameterGeneratorSpi
24 int strength,
27 if (strength < 512 || strength > 3072)
29 throw new InvalidParameterException("strength must be from 512 - 3072");
32 if (strength <= 1024 && strength % 64 != 0)
34 throw new InvalidParameterException("strength must be a multiple of 64 below 1024 bits.");
37 if (strength > 1024 && strength
23 engineInit( int strength, SecureRandom random) argument
[all...]
H A DKeyPairGeneratorSpi.java23 int strength = 1024; field in class:KeyPairGeneratorSpi
34 int strength,
37 if (strength < 512 || strength > 4096 || ((strength < 1024) && strength % 64 != 0) || (strength >= 1024 && strength % 1024 != 0))
39 throw new InvalidParameterException("strength must be from 512 - 4096 and a multiple of 1024 above 1024");
42 this.strength
33 initialize( int strength, SecureRandom random) argument
[all...]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dh/
H A DAlgorithmParameterGeneratorSpi.java19 protected int strength = 1024; field in class:AlgorithmParameterGeneratorSpi
24 int strength,
27 this.strength = strength;
42 this.strength = spec.getPrimeSize();
53 pGen.init(strength, 20, random);
57 pGen.init(strength, 20, new SecureRandom());
23 engineInit( int strength, SecureRandom random) argument
H A DKeyPairGeneratorSpi.java29 int strength = 1024; field in class:KeyPairGeneratorSpi
40 int strength,
43 this.strength = strength;
68 Integer paramStrength = Integers.valueOf(strength);
76 DHParameterSpec dhParams = BouncyCastleProvider.CONFIGURATION.getDHDefaultParameters(strength);
97 pGen.init(strength, certainty, random);
39 initialize( int strength, SecureRandom random) argument
/external/jmonkeyengine/engine/src/core-effects/com/jme3/post/filters/
H A DPosterizationFilter.java43 * Possibly useful in cartoon styled games. Use the strength variable to lessen
56 private float strength = 1.0f; field in class:PosterizationFilter
89 material.setFloat("Strength", strength);
118 * Sets urrent strength value, i.e. influence on final image
120 public void setStrength(float strength) { argument
121 this.strength = strength;
123 material.setFloat("Strength", strength);
142 * Returns current strength value, i.e. influence on final image
145 return strength;
[all...]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/params/
H A DRSAKeyGenerationParameters.java17 int strength,
20 super(random, strength);
22 if (strength < 12)
24 throw new IllegalArgumentException("key strength too small");
14 RSAKeyGenerationParameters( BigInteger publicExponent, SecureRandom random, int strength, int certainty) argument
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/symmetric/util/
H A DBaseAlgorithmParameterGenerator.java18 protected int strength = 1024; field in class:BaseAlgorithmParameterGenerator
31 int strength,
34 this.strength = strength;
30 engineInit( int strength, SecureRandom random) argument
/external/icu/android_icu4j/src/main/java/android/icu/impl/
H A DCacheValue.java18 * depending on the current "strength" when {@code getInstance()} was called.
37 * The default strength is {@code SOFT}.
51 private static volatile Strength strength = Strength.SOFT; field in class:CacheValue
57 * Changes the "strength" of value references for subsequent {@code getInstance()} calls.
59 public static void setStrength(Strength strength) { CacheValue.strength = strength; } argument
62 * Returns true if the "strength" is set to {@code STRONG}.
64 public static boolean futureInstancesWillBeStrong() { return strength == Strength.STRONG; }
68 * It holds it directly if the value is null or if the current "strength" i
[all...]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
H A DCacheValue.java17 * depending on the current "strength" when {@code getInstance()} was called.
35 * The default strength is {@code SOFT}.
49 private static volatile Strength strength = Strength.SOFT; field in class:CacheValue
55 * Changes the "strength" of value references for subsequent {@code getInstance()} calls.
57 public static void setStrength(Strength strength) { CacheValue.strength = strength; } argument
60 * Returns true if the "strength" is set to {@code STRONG}.
62 public static boolean futureInstancesWillBeStrong() { return strength == Strength.STRONG; }
66 * It holds it directly if the value is null or if the current "strength" i
[all...]
/external/icu/android_icu4j/src/main/java/android/icu/impl/coll/
H A DCollationBuilder.java109 void addReset(int strength, CharSequence str) { argument
124 if(strength == Collator.IDENTICAL) { return; } // simple reset-at-position
126 // &[before strength]position
127 assert(Collator.PRIMARY <= strength && strength <= Collator.TERTIARY);
128 int index = findOrInsertNodeForCEs(strength);
133 while(strengthFromNode(node) > strength) {
139 if(strengthFromNode(node) == strength && isTailoredNode(node)) {
140 // Reset to just before this same-strength tailored node.
142 } else if(strength
439 addRelation(int strength, CharSequence prefix, CharSequence str, CharSequence extension) argument
529 findOrInsertNodeForCEs(int strength) argument
560 findOrInsertNodeForRootCE(long ce, int strength) argument
698 insertTailoredNodeAfter(int index, int strength) argument
751 findCommonNode(int index, int strength) argument
1305 countTailoredNodes(long[] nodesArray, int i, int strength) argument
1370 tempCEFromIndexAndStrength(int index, int strength) argument
1450 nodeFromStrength(int strength) argument
[all...]
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/
H A DCollationBuilder.java105 void addReset(int strength, CharSequence str) { argument
120 if(strength == Collator.IDENTICAL) { return; } // simple reset-at-position
122 // &[before strength]position
123 assert(Collator.PRIMARY <= strength && strength <= Collator.TERTIARY);
124 int index = findOrInsertNodeForCEs(strength);
129 while(strengthFromNode(node) > strength) {
135 if(strengthFromNode(node) == strength && isTailoredNode(node)) {
136 // Reset to just before this same-strength tailored node.
138 } else if(strength
435 addRelation(int strength, CharSequence prefix, CharSequence str, CharSequence extension) argument
525 findOrInsertNodeForCEs(int strength) argument
556 findOrInsertNodeForRootCE(long ce, int strength) argument
694 insertTailoredNodeAfter(int index, int strength) argument
747 findCommonNode(int index, int strength) argument
1301 countTailoredNodes(long[] nodesArray, int i, int strength) argument
1366 tempCEFromIndexAndStrength(int index, int strength) argument
1446 nodeFromStrength(int strength) argument
[all...]
/external/icu/icu4c/source/i18n/
H A Dcollationbuilder.cpp104 RuleBasedCollator::RuleBasedCollator(const UnicodeString &rules, ECollationStrength strength, argument
113 internalBuildTailoring(rules, strength, UCOL_DEFAULT, NULL, NULL, errorCode);
130 ECollationStrength strength,
140 internalBuildTailoring(rules, strength, decompositionMode, NULL, NULL, errorCode);
158 int32_t strength,
182 if(strength != UCOL_DEFAULT) {
183 setAttribute(UCOL_STRENGTH, (UColAttributeValue)strength, errorCode);
292 CollationBuilder::addReset(int32_t strength, const UnicodeString &str, argument
315 if(strength == UCOL_IDENTICAL) { return; } // simple reset-at-position
317 // &[before strength]positio
129 RuleBasedCollator(const UnicodeString &rules, ECollationStrength strength, UColAttributeValue decompositionMode, UErrorCode &errorCode) argument
157 internalBuildTailoring(const UnicodeString &rules, int32_t strength, UColAttributeValue decompositionMode, UParseError *outParseError, UnicodeString *outReason, UErrorCode &errorCode) argument
484 int32_t strength = UCOL_PRIMARY; local
646 addRelation(int32_t strength, const UnicodeString &prefix, const UnicodeString &str, const UnicodeString &extension, const char *&parserErrorReason, UErrorCode &errorCode) argument
761 findOrInsertNodeForCEs(int32_t strength, const char *&parserErrorReason, UErrorCode &errorCode) argument
796 findOrInsertNodeForRootCE(int64_t ce, int32_t strength, UErrorCode &errorCode) argument
938 insertTailoredNodeAfter(int32_t index, int32_t strength, UErrorCode &errorCode) argument
1063 int32_t strength = ceStrength(ce); local
1413 int32_t strength = strengthFromNode(node); local
1561 countTailoredNodes(const int64_t *nodesArray, int32_t i, int32_t strength) argument
1637 ucol_openRules(const UChar *rules, int32_t rulesLength, UColAttributeValue normalizationMode, UCollationStrength strength, UParseError *parseError, UErrorCode *pErrorCode) argument
[all...]
H A Dcollationbuilder.h57 virtual void addReset(int32_t strength, const UnicodeString &str,
69 virtual void addRelation(int32_t strength, const UnicodeString &prefix,
75 * for the CE + strength.
77 int32_t findOrInsertNodeForCEs(int32_t strength, const char *&parserErrorReason,
79 int32_t findOrInsertNodeForRootCE(int64_t ce, int32_t strength, UErrorCode &errorCode);
88 * Skips over nodes of weaker strength to maintain collation order
92 int32_t insertTailoredNodeAfter(int32_t index, int32_t strength, UErrorCode &errorCode);
103 * Finds the node which implies or contains a common=05 weight of the given strength
107 * Always returns the input index if that node is no stronger than the given strength.
109 int32_t findCommonNode(int32_t index, int32_t strength) cons
180 tempCEFromIndexAndStrength(int32_t index, int32_t strength) argument
253 nodeFromStrength(int32_t strength) argument
[all...]
/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/jdkadapter/
H A DCollatorICU.java91 int strength;
95 strength = java.text.Collator.IDENTICAL;
98 strength = java.text.Collator.PRIMARY;
101 strength = java.text.Collator.SECONDARY;
104 strength = java.text.Collator.TERTIARY;
109 strength = java.text.Collator.TERTIARY;
112 throw new IllegalStateException("Unknown strength is used by the ICU Collator.");
114 return strength;
131 // This option is interpreted as IDENTICAL strength.
154 throw new IllegalArgumentException("Invalid strength
[all...]
/external/v8/benchmarks/
H A Ddeltablue.js97 * New strengths may be inserted in the strength hierarchy without
149 * a strength instance variable; concrete subclasses provide a means
153 function Constraint(strength) {
154 this.strength = strength;
175 if (this.strength == Strength.REQUIRED)
212 function UnaryConstraint(v, strength) {
213 UnaryConstraint.superConstructor.call(this, strength);
235 && Strength.stronger(this.strength, this.myOutput.walkStrength);
257 * Calculate the walkabout strength, th
[all...]
/external/mesa3d/include/VG/
H A Dvgext.h144 VG_API_CALL void VG_API_ENTRY vgParametricFilterKHR(VGImage dst,VGImage src,VGImage blur,VGfloat strength,VGfloat offsetX,VGfloat offsetY,VGbitfield filterFlags,VGPaint highlightPaint,VGPaint shadowPaint);
145 VGU_API_CALL VGUErrorCode VGU_API_ENTRY vguDropShadowKHR(VGImage dst,VGImage src,VGfloat dimX,VGfloat dimY,VGuint iterative,VGfloat strength,VGfloat distance,VGfloat angle,VGbitfield filterFlags,VGbitfield allowedQuality,VGuint shadowColorRGBA);
146 VGU_API_CALL VGUErrorCode VGU_API_ENTRY vguGlowKHR(VGImage dst,VGImage src,VGfloat dimX,VGfloat dimY,VGuint iterative,VGfloat strength,VGbitfield filterFlags,VGbitfield allowedQuality,VGuint glowColorRGBA) ;
147 VGU_API_CALL VGUErrorCode VGU_API_ENTRY vguBevelKHR(VGImage dst,VGImage src,VGfloat dimX,VGfloat dimY,VGuint iterative,VGfloat strength,VGfloat distance,VGfloat angle,VGbitfield filterFlags,VGbitfield allowedQuality,VGuint highlightColorRGBA,VGuint shadowColorRGBA);
148 VGU_API_CALL VGUErrorCode VGU_API_ENTRY vguGradientGlowKHR(VGImage dst,VGImage src,VGfloat dimX,VGfloat dimY,VGuint iterative,VGfloat strength,VGfloat distance,VGfloat angle,VGbitfield filterFlags,VGbitfield allowedQuality,VGuint stopsCount,const VGfloat* glowColorRampStops);
149 VGU_API_CALL VGUErrorCode VGU_API_ENTRY vguGradientBevelKHR(VGImage dst,VGImage src,VGfloat dimX,VGfloat dimY,VGuint iterative,VGfloat strength,VGfloat distance,VGfloat angle,VGbitfield filterFlags,VGbitfield allowedQuality,VGuint stopsCount,const VGfloat* bevelColorRampStops);
151 typedef void (VG_API_ENTRYP PFNVGPARAMETRICFILTERKHRPROC) (VGImage dst,VGImage src,VGImage blur,VGfloat strength,VGfloat offsetX,VGfloat offsetY,VGbitfield filterFlags,VGPaint highlightPaint,VGPaint shadowPaint);
152 typedef VGUErrorCode (VGU_API_ENTRYP PFNVGUDROPSHADOWKHRPROC) (VGImage dst,VGImage src,VGfloat dimX,VGfloat dimY,VGuint iterative,VGfloat strength,VGfloat distance,VGfloat angle,VGbitfield filterFlags,VGbitfield allowedQuality,VGuint shadowColorRGBA);
153 typedef VGUErrorCode (VGU_API_ENTRYP PFNVGUGLOWKHRPROC) (VGImage dst,VGImage src,VGfloat dimX,VGfloat dimY,VGuint iterative,VGfloat strength,VGbitfield filterFlags,VGbitfield allowedQuality,VGuint glowColorRGBA);
154 typedef VGUErrorCode (VGU_API_ENTRYP PFNVGUBEVELKHRPROC) (VGImage dst,VGImage src,VGfloat dimX,VGfloat dimY,VGuint iterative,VGfloat strength,VGfloa
[all...]
/external/icu/icu4c/source/test/intltest/
H A Dssearch.h43 const char *name, const char *strength, uint32_t seed);
/external/libvpx/libvpx/vp8/encoder/x86/
H A Dtemporal_filter_apply_sse2.asm19 ; int strength, | 4
35 %define strength 16
47 movdqa [rsp + strength], xmm6 ; where strength is used, all 16 bytes are read
50 ; 0x8000 >> (16 - strength)
52 sub rdx, arg(4) ; 16 - strength
111 ; modifer += 0x8000 >> (16 - strength)
115 ; modifier >>= strength
116 psrlw xmm0, [rsp + strength]
117 psrlw xmm1, [rsp + strength]
[all...]
/external/libvpx/libvpx/vp9/encoder/x86/
H A Dvp9_temporal_filter_apply_sse2.asm20 ; int strength, | 5
37 %define strength 32
51 movdqa [rsp + strength], xmm6 ; where strength is used, all 16 bytes are read
54 ; 0x8000 >> (16 - strength)
56 sub rdx, arg(5) ; 16 - strength
116 ; modifer += 0x8000 >> (16 - strength)
120 ; modifier >>= strength
121 psrlw xmm0, [rsp + strength]
122 psrlw xmm1, [rsp + strength]
[all...]

Completed in 824 milliseconds

12345