/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/symmetric/util/ |
PBESecretKeyFactory.java | 19 private int keySize; 28 int keySize, 36 this.keySize = keySize; 51 return new BCPBEKey(this.algName, this.algOid, scheme, digest, keySize, ivSize, pbeSpec, null); 56 param = PBE.Util.makePBEParameters(pbeSpec, scheme, digest, keySize, ivSize); 60 param = PBE.Util.makePBEMacParameters(pbeSpec, scheme, digest, keySize); 63 return new BCPBEKey(this.algName, this.algOid, scheme, digest, keySize, ivSize, pbeSpec, param);
|
BaseKeyGenerator.java | 19 protected int keySize; 31 this.keySize = this.defaultKeySize = defaultKeySize; 54 int keySize, 63 engine.init(new KeyGenerationParameters(random, keySize));
|
BCPBEKey.java | 19 int keySize; 33 int keySize, 42 this.keySize = keySize; 104 return keySize;
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/spec/ |
PBKDF2KeySpec.java | 12 public PBKDF2KeySpec(char[] password, byte[] salt, int iterationCount, int keySize, AlgorithmIdentifier prf) 14 super(password, salt, iterationCount, keySize);
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/generators/ |
PKCS5S1ParametersGenerator.java | 58 * @param keySize the size of the key we want (in bits) 63 int keySize) 65 keySize = keySize / 8; 67 if (keySize > digest.getDigestSize()) 70 "Can't generate a derived key " + keySize + " bytes long."); 75 return new KeyParameter(dKey, 0, keySize); 83 * @param keySize the size of the key we want (in bits) 86 * @exception IllegalArgumentException if keySize + ivSize is larger than the base hash size. 89 int keySize, [all...] |
OpenSSLPBEParametersGenerator.java | 86 * @param keySize the size of the key we want (in bits) 91 int keySize) 93 keySize = keySize / 8; 95 byte[] dKey = generateDerivedKey(keySize); 97 return new KeyParameter(dKey, 0, keySize); 105 * @param keySize the size of the key we want (in bits) 108 * @exception IllegalArgumentException if keySize + ivSize is larger than the base hash size. 111 int keySize, 114 keySize = keySize / 8 [all...] |
PKCS5S2ParametersGenerator.java | 111 * @param keySize the size of the key we want (in bits) 115 int keySize) 117 keySize = keySize / 8; 119 byte[] dKey = generateDerivedKey(keySize); 121 return new KeyParameter(dKey, 0, keySize); 129 * @param keySize the size of the key we want (in bits) 134 int keySize, 137 keySize = keySize / 8 [all...] |
PKCS12ParametersGenerator.java | 168 * @param keySize the size of the key we want (in bits) 172 int keySize) 174 keySize = keySize / 8; 176 byte[] dKey = generateDerivedKey(KEY_MATERIAL, keySize); 178 return new KeyParameter(dKey, 0, keySize); 186 * @param keySize the size of the key we want (in bits) 191 int keySize, 194 keySize = keySize / 8 [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/config/ |
ProviderConfiguration.java | 11 DHParameterSpec getDHDefaultParameters(int keySize);
|
/external/apache-harmony/security/src/test/support/common/java/org/apache/harmony/security/tests/support/ |
MyKeyPairGenerator2.java | 34 int keySize; 54 public void initialize(int keysize, SecureRandom random) { 55 if (keysize < 64) { 56 throw new InvalidParameterException("Incorrect keysize parameter"); 58 keySize = keysize;
|
MyKeyPairGenerator1.java | 38 public int keySize; 60 public void initialize(int keysize, SecureRandom random) { 61 if ((keysize < 0) || ((keysize % 100) != 0)) { 62 throw new InvalidParameterException("Incorrect keysize parameter"); 67 keySize = keysize;
|
MyAlgorithmParameterGeneratorSpi.java | 37 protected void engineInit(int keysize, SecureRandom random) { 38 if (keysize < 0) { 39 throw new IllegalArgumentException("keysize < 0");
|
MyKeyPairGeneratorSpi.java | 37 public void initialize(int keysize, SecureRandom random) { 38 if (keysize < 100) { 40 "Invalid keysize: less than 100");
|
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/ |
MyKeyPairGenerator2.java | 36 int keySize; 56 public void initialize(int keysize, SecureRandom random) { 57 if (keysize < 64) { 58 throw new InvalidParameterException("Incorrect keysize parameter"); 60 keySize = keysize;
|
MyKeyPairGenerator1.java | 40 public int keySize; 62 public void initialize(int keysize, SecureRandom random) { 63 if ((keysize < 0) || ((keysize % 100) != 0)) { 64 throw new InvalidParameterException("Incorrect keysize parameter"); 69 keySize = keysize;
|
MyAlgorithmParameterGeneratorSpi.java | 39 public void engineInit(int keysize, SecureRandom random) { 40 if (keysize < 0) { 41 throw new IllegalArgumentException("keysize < 0");
|
/libcore/luni/src/main/java/java/security/spec/ |
RSAKeyGenParameterSpec.java | 38 private final int keysize; field in class:RSAKeyGenParameterSpec 46 * @param keysize 51 public RSAKeyGenParameterSpec(int keysize, BigInteger publicExponent) { 52 this.keysize = keysize; 62 return keysize;
|
/system/core/libutils/ |
BlobCache.cpp | 55 void BlobCache::set(const void* key, size_t keySize, const void* value, 57 if (mMaxKeySize < keySize) { 59 keySize, mMaxKeySize); 67 if (mMaxTotalSize < keySize + valueSize) { 69 "large: %zu (limit: %zu)", keySize + valueSize, mMaxTotalSize); 72 if (keySize == 0) { 73 ALOGW("set: not caching because keySize is 0"); 81 sp<Blob> dummyKey(new Blob(key, keySize, false)); 88 sp<Blob> keyBlob(new Blob(key, keySize, true)); 90 size_t newTotalSize = mTotalSize + keySize + valueSize [all...] |
/libcore/support/src/test/java/tests/security/ |
AlgorithmParameterSymmetricHelper.java | 36 private final int keySize; 39 public AlgorithmParameterSymmetricHelper(String algorithmName, int keySize) { 41 this.keySize = keySize; 44 public AlgorithmParameterSymmetricHelper(String algorithmName, String blockmode, int keySize) { 45 this(algorithmName, keySize); 59 generator.init(keySize);
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/ |
PBEParametersGenerator.java | 70 * generate derived parameters for a key of length keySize. 72 * @param keySize the length, in bits, of the key required. 75 public abstract CipherParameters generateDerivedParameters(int keySize); 78 * generate derived parameters for a key of length keySize, and 81 * @param keySize the length, in bits, of the key required. 85 public abstract CipherParameters generateDerivedParameters(int keySize, int ivSize); 88 * generate derived parameters for a key of length keySize, specifically 91 * @param keySize the length, in bits, of the key required. 94 public abstract CipherParameters generateDerivedMacParameters(int keySize);
|
/external/apache-harmony/crypto/src/test/support/common/java/org/apache/harmony/crypto/tests/support/ |
MyKeyGeneratorSpi.java | 52 protected void engineInit(int keysize, SecureRandom random) { 53 if (keysize <= 77) { 54 throw new IllegalArgumentException("Invalid keysize");
|
/external/chromium_org/third_party/mesa/src/src/mesa/program/ |
prog_cache.c | 175 const void *key, GLuint keysize) 178 memcmp(cache->last->key, key, keysize) == 0) { 182 const GLuint hash = hash_key(key, keysize); 186 if (c->hash == hash && memcmp(c->key, key, keysize) == 0) { 200 const void *key, GLuint keysize, 203 const GLuint hash = hash_key(key, keysize); 208 c->key = malloc(keysize); 209 memcpy(c->key, key, keysize); 228 const void *key, GLuint keysize, 231 const GLuint hash = hash_key(key, keysize); [all...] |
/external/mesa3d/src/mesa/program/ |
prog_cache.c | 175 const void *key, GLuint keysize) 178 memcmp(cache->last->key, key, keysize) == 0) { 182 const GLuint hash = hash_key(key, keysize); 186 if (c->hash == hash && memcmp(c->key, key, keysize) == 0) { 200 const void *key, GLuint keysize, 203 const GLuint hash = hash_key(key, keysize); 208 c->key = malloc(keysize); 209 memcpy(c->key, key, keysize); 228 const void *key, GLuint keysize, 231 const GLuint hash = hash_key(key, keysize); [all...] |
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/support/ |
MyKeyGeneratorSpi.java | 54 protected void engineInit(int keysize, SecureRandom random) { 55 if (keysize <= 77) { 56 throw new IllegalArgumentException("Invalid keysize");
|
/libcore/luni/src/test/java/libcore/javax/crypto/ |
KeyGeneratorTest.java | 74 private static void putKeySize(String algorithm, int keySize) { 81 keySizes.add(keySize); 140 for (int keySize : keySizes) { 141 kg.init(keySize); 144 kg.init(keySize, (SecureRandom) null); 147 kg.init(keySize, new SecureRandom());
|