/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/ |
KeyGenerationParameters.java | 11 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;
|
CipherKeyGenerator.java | 11 protected int strength; field in class:CipherKeyGenerator 22 this.strength = (param.getStrength() + 7) / 8; 32 byte[] key = new byte[strength];
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/ |
KeyGenerationParameters.java | 13 private int strength; field in class:KeyGenerationParameters 17 * and a strength (in bits). 20 * @param strength the size, in bits, of the keys we want to produce. 24 int strength) 27 this.strength = strength; 42 * return the bit strength for keys produced by this generator, 44 * @return the strength of the keys this generator produces (in bits). 48 return strength;
|
CipherKeyGenerator.java | 13 protected int strength; field in class:CipherKeyGenerator 24 this.strength = (param.getStrength() + 7) / 8; 34 byte[] key = new byte[strength];
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/generators/ |
DESedeKeyGenerator.java | 12 * 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 != (2 * DESedeParameters.DES_KEY_LENGTH) [all...] |
DESKeyGenerator.java | 11 * 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)
|
RSAKeyPairGenerator.java | 36 // p and q values should have a length of half the strength in bits 38 int strength = param.getStrength(); local 39 int pbitlength = (strength + 1) / 2; 40 int qbitlength = strength - pbitlength; 41 int mindiffbits = (strength / 2) - 100; 43 if (mindiffbits < strength / 3) 45 mindiffbits = strength / 3; 48 int minWeight = strength >> 2; 50 // d lower bound is 2^(strength / 2) 51 BigInteger dLowerBound = BigInteger.valueOf(2).pow(strength / 2) [all...] |
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/generators/ |
DESedeKeyGenerator.java | 16 * initialise the key generator - if strength is set to zero 18 * strength can be 128 or 192 (or 112 or 168 if you don't count 28 this.strength = (param.getStrength() + 7) / 8; 30 if (strength == 0 || strength == (168 / 8)) 32 strength = DESedeParameters.DES_EDE_KEY_LENGTH; 34 else if (strength == (112 / 8)) 36 strength = 2 * DESedeParameters.DES_KEY_LENGTH; 38 else if (strength != DESedeParameters.DES_EDE_KEY_LENGTH 39 && strength != (2 * DESedeParameters.DES_KEY_LENGTH) [all...] |
DESKeyGenerator.java | 15 * initialise the key generator - if strength is set to zero 17 * strength can be 64 or 56 bits (if you don't count the parity bits). 26 if (strength == 0 || strength == (56 / 8)) 28 strength = DESParameters.DES_KEY_LENGTH; 30 else if (strength != DESParameters.DES_KEY_LENGTH)
|
RSAKeyPairGenerator.java | 38 // p and q values should have a length of half the strength in bits 40 int strength = param.getStrength(); local 41 int pbitlength = (strength + 1) / 2; 42 int qbitlength = strength - pbitlength; 43 int mindiffbits = (strength / 2) - 100; 45 if (mindiffbits < strength / 3) 47 mindiffbits = strength / 3; 50 int minWeight = strength >> 2; 52 // d lower bound is 2^(strength / 2) 53 BigInteger dLowerBound = BigInteger.valueOf(2).pow(strength / 2) [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dsa/ |
AlgorithmParameterGeneratorSpi.java | 22 // Android-changed: Change default strength to 1024 23 // In 1.57, the default strength was changed to 2048. We keep it at 1024 for app 26 protected int strength = 1024; field in class:AlgorithmParameterGeneratorSpi 30 int strength, 33 if (strength < 512 || strength > 3072) 35 throw new InvalidParameterException("strength must be from 512 - 3072"); 38 if (strength <= 1024 && strength % 64 != 0) 40 throw new InvalidParameterException("strength must be a multiple of 64 below 1024 bits.") [all...] |
KeyPairGeneratorSpi.java | 34 // Android-changed: Change default strength to 1024 35 // In 1.57, the default strength was changed to 2048. We keep it at 1024 for app 38 int strength = 1024; field in class:KeyPairGeneratorSpi 49 int strength, 52 if (strength < 512 || strength > 4096 || ((strength < 1024) && strength % 64 != 0) || (strength >= 1024 && strength % 1024 != 0) [all...] |
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/asymmetric/dsa/ |
AlgorithmParameterGeneratorSpi.java | 26 // Android-changed: Change default strength to 1024 27 // In 1.57, the default strength was changed to 2048. We keep it at 1024 for app 30 protected int strength = 1024; field in class:AlgorithmParameterGeneratorSpi 34 int strength, 37 if (strength < 512 || strength > 3072) 39 throw new InvalidParameterException("strength must be from 512 - 3072"); 42 if (strength <= 1024 && strength % 64 != 0) 44 throw new InvalidParameterException("strength must be a multiple of 64 below 1024 bits.") [all...] |
KeyPairGeneratorSpi.java | 38 // Android-changed: Change default strength to 1024 39 // In 1.57, the default strength was changed to 2048. We keep it at 1024 for app 42 int strength = 1024; field in class:KeyPairGeneratorSpi 53 int strength, 56 if (strength < 512 || strength > 4096 || ((strength < 1024) && strength % 64 != 0) || (strength >= 1024 && strength % 1024 != 0) [all...] |
/external/webp/src/utils/ |
quant_levels_dec_utils.h | 25 // Strength is in [0..100] and controls the amount of dithering applied. 29 int strength);
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/params/ |
RSAKeyGenerationParameters.java | 17 int strength, 20 super(random, strength); 22 if (strength < 12) 24 throw new IllegalArgumentException("key strength too small");
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/params/ |
RSAKeyGenerationParameters.java | 21 int strength, 24 super(random, strength); 26 if (strength < 12) 28 throw new IllegalArgumentException("key strength too small");
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/symmetric/util/ |
BaseAlgorithmParameterGenerator.java | 22 protected int strength = 1024; field in class:BaseAlgorithmParameterGenerator 35 int strength, 38 this.strength = strength;
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/symmetric/util/ |
BaseAlgorithmParameterGenerator.java | 26 protected int strength = 1024; field in class:BaseAlgorithmParameterGenerator 39 int strength, 42 this.strength = strength;
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dh/ |
AlgorithmParameterGeneratorSpi.java | 21 protected int strength = 2048; field in class:AlgorithmParameterGeneratorSpi 26 int strength, 29 this.strength = strength; 44 this.strength = spec.getPrimeSize(); 53 int certainty = PrimeCertaintyCalculator.getDefaultCertainty(strength); 57 pGen.init(strength, certainty, random); 61 pGen.init(strength, certainty, CryptoServicesRegistrar.getSecureRandom());
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/asymmetric/dh/ |
AlgorithmParameterGeneratorSpi.java | 25 protected int strength = 2048; field in class:AlgorithmParameterGeneratorSpi 30 int strength, 33 this.strength = strength; 48 this.strength = spec.getPrimeSize(); 57 int certainty = PrimeCertaintyCalculator.getDefaultCertainty(strength); 61 pGen.init(strength, certainty, random); 65 pGen.init(strength, certainty, CryptoServicesRegistrar.getSecureRandom());
|
/cts/tests/tests/media/src/android/media/cts/ |
BassBoostTest.java | 77 //Test case 1.0: test strength 85 short strength = mBassBoost.getRoundedStrength(); local 86 strength = (strength == TEST_STRENGTH) ? TEST_STRENGTH2 : TEST_STRENGTH; 87 mBassBoost.setStrength((short)strength); 89 // allow STRENGTH_TOLERANCE difference between set strength and rounded strength 90 assertTrue("got incorrect strength", 91 ((float)strength2 > (float)strength / STRENGTH_TOLERANCE) && 92 ((float)strength2 < (float)strength * STRENGTH_TOLERANCE)) 94 short strength = mBassBoost.getRoundedStrength(); local 120 short strength = settings.strength; local [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
CacheValue.java | 20 * depending on the current "strength" when {@code getInstance()} was called. 38 * "Strength" of holding a value in CacheValue instances. 39 * The default strength is {@code SOFT}. 42 public enum Strength { 54 private static volatile Strength strength = Strength.SOFT; field in class:CacheValue 60 * Changes the "strength" of value references for subsequent {@code getInstance()} calls. 62 public static void setStrength(Strength strength) { CacheValue.strength = strength; [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
CacheValue.java | 19 * depending on the current "strength" when {@code getInstance()} was called. 36 * "Strength" of holding a value in CacheValue instances. 37 * The default strength is {@code SOFT}. 39 public enum Strength { 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; [all...] |
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/ |
post_filter.cpp | 189 int mbnum, strength, A_D, d1_2, d1, d2, A, B, C, D, b_size; local 220 strength = STRENGTH_tab[QP_store[mbnum]]; 233 if (d1 < -(strength << 1)) 237 else if (d1 < -strength) 239 d1 = -d1 - (strength << 1); 246 if (d1 > (strength << 1)) 250 else if (d1 > strength) 252 d1 = (strength << 1) - d1; 311 strength = STRENGTH_tab[(annex_T ? MQ_chroma_QP_table[QP_store[mbnum]] : QP_store[mbnum])]; 315 strength = STRENGTH_tab[(annex_T ? MQ_chroma_QP_table[QP_store[mbnum - nMBPerRow]] : QP_store[mbnum - nMBP (…) [all...] |