/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 | 112 * @param keySize the size of the key we want (in bits) 116 int keySize) 118 keySize = keySize / 8; 120 byte[] dKey = Arrays.copyOfRange(generateDerivedKey(keySize), 0, keySize); 122 return new KeyParameter(dKey, 0, keySize); 130 * @param keySize the size of the key we want (in bits) 135 int keySize, 138 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/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;
|
BaseMac.java | 36 private int keySize = 160; 48 int keySize) 53 this.keySize = keySize; 97 int keySize = 160; 102 // keySize = 256; 110 keySize = 256; 113 param = PBE.Util.makePBEMacParameters(k, PKCS12, digest, keySize, pbeSpec);
|
PBE.java | 188 int keySize, 213 param = generator.generateDerivedParameters(keySize, ivSize); 217 param = generator.generateDerivedParameters(keySize); 343 int keySize) 353 param = generator.generateDerivedMacParameters(keySize); 371 int keySize, 384 param = generator.generateDerivedParameters(keySize, ivSize); 388 param = generator.generateDerivedParameters(keySize); 408 int keySize, 418 param = generator.generateDerivedMacParameters(keySize); [all...] |
/external/lzma/CPP/7zip/Crypto/ |
MyAes.h | 30 CAesCbcCoder(bool encodeMode, unsigned keySize);
41 CAesCbcEncoder(unsigned keySize = 0): CAesCbcCoder(true, keySize) {}
46 CAesCbcDecoder(unsigned keySize = 0): CAesCbcCoder(false, keySize) {}
|
/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); 52 generator.init(keySize);
|
/external/lzma/C/ |
Aes.h | 22 /* keySize = 16 or 24 or 32 (bytes) */
23 typedef void (MY_FAST_CALL *AES_SET_KEY_FUNC)(UInt32 *aes, const Byte *key, unsigned keySize);
24 void MY_FAST_CALL Aes_SetKey_Enc(UInt32 *aes, const Byte *key, unsigned keySize);
25 void MY_FAST_CALL Aes_SetKey_Dec(UInt32 *aes, const Byte *key, unsigned keySize);
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/config/ |
ProviderConfiguration.java | 11 DHParameterSpec getDHDefaultParameters(int keySize);
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/spec/ |
PBKDF2KeySpec.java | 21 * @param keySize size of the key to be generated (in bits). 24 public PBKDF2KeySpec(char[] password, byte[] salt, int iterationCount, int keySize, AlgorithmIdentifier prf) 26 super(password, salt, iterationCount, 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;
|
/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;
|
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cms/ |
PasswordRecipient.java | 11 byte[] calculateDerivedKey(int schemeID, AlgorithmIdentifier derivationAlgorithm, int keySize)
|
/system/core/libutils/ |
BlobCache.cpp | 57 void BlobCache::set(const void* key, size_t keySize, const void* value, 59 if (mMaxKeySize < keySize) { 61 keySize, mMaxKeySize); 69 if (mMaxTotalSize < keySize + valueSize) { 71 "large: %zu (limit: %zu)", keySize + valueSize, mMaxTotalSize); 74 if (keySize == 0) { 75 ALOGW("set: not caching because keySize is 0"); 83 sp<Blob> dummyKey(new Blob(key, keySize, false)); 90 sp<Blob> keyBlob(new Blob(key, keySize, true)); 92 size_t newTotalSize = mTotalSize + keySize + valueSize [all...] |
/frameworks/native/opengl/libs/EGL/ |
egl_cache.h | 55 void setBlob(const void* key, EGLsizeiANDROID keySize, const void* value, 61 EGLsizeiANDROID getBlob(const void* key, EGLsizeiANDROID 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/icu/icu4c/source/samples/legacy/ |
newcol.cpp | 70 int32_t keySize = 0; 77 keySize = getSortKey_current("ja", data[i], -1, keys[i], 32); 78 fprintf(stderr, "For i=%d, size of sortkey is %d\n", i, keySize);
|
oldcol.cpp | 86 int32_t keySize = 0; 94 keySize = getSortKey_legacy("ja", data[i], -1, keys[i], 32); 95 fprintf(stderr, "For i=%d, size of sortkey is %d\n", i, keySize);
|
/external/tpm2/ |
EncryptDecrypt.c | 28 UINT16 keySize; 61 keySize = symKey->publicArea.parameters.symDetail.sym.keyBits.sym; 63 blockSize = CryptGetSymmetricBlockSize(alg, keySize); 90 keySize, in->mode, key, 100 keySize,
|
/external/jetty/src/java/org/eclipse/jetty/server/ssl/ |
SslCertificates.java | 112 Integer keySize; 119 keySize=cachedInfo.getKeySize(); 125 keySize=new Integer(ServletSSL.deduceKeyLength(cipherSuite)); 129 cachedInfo=new CachedInfo(keySize,certs,idStr); 137 request.setAttribute("javax.servlet.request.key_size",keySize); 151 * effective keySize and the client certificate chain. 159 CachedInfo(Integer keySize, X509Certificate[] certs,String idStr) 161 this._keySize=keySize;
|
/libcore/luni/src/test/java/libcore/javax/crypto/ |
KeyGeneratorTest.java | 83 private static void putKeySize(String algorithm, int keySize) { 90 keySizes.add(keySize); 149 for (int keySize : keySizes) { 150 kg.init(keySize); 153 kg.init(keySize, (SecureRandom) null); 156 kg.init(keySize, new SecureRandom());
|