/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/generators/ |
D | PKCS5S1ParametersGenerator.java | 63 int keySize) in generateDerivedParameters() argument 65 keySize = keySize / 8; in generateDerivedParameters() 67 if (keySize > digest.getDigestSize()) in generateDerivedParameters() 70 "Can't generate a derived key " + keySize + " bytes long."); in generateDerivedParameters() 75 return new KeyParameter(dKey, 0, keySize); in generateDerivedParameters() 89 int keySize, in generateDerivedParameters() argument 92 keySize = keySize / 8; in generateDerivedParameters() 95 if ((keySize + ivSize) > digest.getDigestSize()) in generateDerivedParameters() 98 "Can't generate a derived key " + (keySize + ivSize) + " bytes long."); in generateDerivedParameters() 103 return new ParametersWithIV(new KeyParameter(dKey, 0, keySize), dKey, keySize, ivSize); in generateDerivedParameters() [all …]
|
D | OpenSSLPBEParametersGenerator.java | 91 int keySize) in generateDerivedParameters() argument 93 keySize = keySize / 8; in generateDerivedParameters() 95 byte[] dKey = generateDerivedKey(keySize); in generateDerivedParameters() 97 return new KeyParameter(dKey, 0, keySize); in generateDerivedParameters() 111 int keySize, in generateDerivedParameters() argument 114 keySize = keySize / 8; in generateDerivedParameters() 117 byte[] dKey = generateDerivedKey(keySize + ivSize); in generateDerivedParameters() 119 return new ParametersWithIV(new KeyParameter(dKey, 0, keySize), dKey, keySize, ivSize); in generateDerivedParameters() 131 int keySize) in generateDerivedMacParameters() argument 133 return generateDerivedParameters(keySize); in generateDerivedMacParameters()
|
D | PKCS5S2ParametersGenerator.java | 115 int keySize) in generateDerivedParameters() argument 117 keySize = keySize / 8; in generateDerivedParameters() 119 byte[] dKey = generateDerivedKey(keySize); in generateDerivedParameters() 121 return new KeyParameter(dKey, 0, keySize); in generateDerivedParameters() 134 int keySize, in generateDerivedParameters() argument 137 keySize = keySize / 8; in generateDerivedParameters() 140 byte[] dKey = generateDerivedKey(keySize + ivSize); in generateDerivedParameters() 142 return new ParametersWithIV(new KeyParameter(dKey, 0, keySize), dKey, keySize, ivSize); in generateDerivedParameters() 153 int keySize) in generateDerivedMacParameters() argument 155 return generateDerivedParameters(keySize); in generateDerivedMacParameters()
|
D | PKCS12ParametersGenerator.java | 172 int keySize) in generateDerivedParameters() argument 174 keySize = keySize / 8; in generateDerivedParameters() 176 byte[] dKey = generateDerivedKey(KEY_MATERIAL, keySize); in generateDerivedParameters() 178 return new KeyParameter(dKey, 0, keySize); in generateDerivedParameters() 191 int keySize, in generateDerivedParameters() argument 194 keySize = keySize / 8; in generateDerivedParameters() 197 byte[] dKey = generateDerivedKey(KEY_MATERIAL, keySize); in generateDerivedParameters() 201 return new ParametersWithIV(new KeyParameter(dKey, 0, keySize), iv, 0, ivSize); in generateDerivedParameters() 212 int keySize) in generateDerivedMacParameters() argument 214 keySize = keySize / 8; in generateDerivedMacParameters() [all …]
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/symmetric/util/ |
D | PBESecretKeyFactory.java | 19 private int keySize; field in PBESecretKeyFactory 28 int keySize, in PBESecretKeyFactory() argument 36 this.keySize = keySize; in PBESecretKeyFactory() 51 … return new BCPBEKey(this.algName, this.algOid, scheme, digest, keySize, ivSize, pbeSpec, null); in engineGenerateSecret() 56 param = PBE.Util.makePBEParameters(pbeSpec, scheme, digest, keySize, ivSize); in engineGenerateSecret() 60 param = PBE.Util.makePBEMacParameters(pbeSpec, scheme, digest, keySize); in engineGenerateSecret() 63 … return new BCPBEKey(this.algName, this.algOid, scheme, digest, keySize, ivSize, pbeSpec, param); in engineGenerateSecret()
|
D | BCPBEKey.java | 19 int keySize; field in BCPBEKey 33 int keySize, in BCPBEKey() argument 42 this.keySize = keySize; in BCPBEKey() 104 return keySize; in getKeySize()
|
D | BaseKeyGenerator.java | 19 protected int keySize; field in BaseKeyGenerator 31 this.keySize = this.defaultKeySize = defaultKeySize; in BaseKeyGenerator() 54 int keySize, in engineInit() argument 63 engine.init(new KeyGenerationParameters(random, keySize)); in engineInit()
|
D | BaseMac.java | 24 private int keySize = 160; field in BaseMac 36 int keySize) in BaseMac() argument 41 this.keySize = keySize; in BaseMac()
|
D | PBE.java | 244 int keySize, in makePBEParameters() argument 257 param = generator.generateDerivedParameters(keySize, ivSize); in makePBEParameters() 261 param = generator.generateDerivedParameters(keySize); in makePBEParameters() 282 int keySize) in makePBEMacParameters() argument 292 param = generator.generateDerivedMacParameters(keySize); in makePBEMacParameters()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/symmetric/ |
D | DES.java | 218 int keySize, in engineInit() argument 221 super.engineInit(keySize, random); in engineInit() 299 private int keySize; field in DES.DESPBEKeyFactory 308 int keySize, in DESPBEKeyFactory() argument 316 this.keySize = keySize; in DESPBEKeyFactory() 331 … return new BCPBEKey(this.algName, this.algOid, scheme, digest, keySize, ivSize, pbeSpec, null); in engineGenerateSecret() 336 param = PBE.Util.makePBEParameters(pbeSpec, scheme, digest, keySize, ivSize); in engineGenerateSecret() 340 param = PBE.Util.makePBEMacParameters(pbeSpec, scheme, digest, keySize); in engineGenerateSecret() 355 … return new BCPBEKey(this.algName, this.algOid, scheme, digest, keySize, ivSize, pbeSpec, param); in engineGenerateSecret()
|
/external/chromium_org/net/third_party/nss/ssl/ |
D | derive.c | 80 unsigned int keySize; /* actual size of cipher keys */ in ssl3_KeyAndMacDeriveBypass() local 114 keySize = cipher_def->key_size; in ssl3_KeyAndMacDeriveBypass() 117 if (keySize == 0) { in ssl3_KeyAndMacDeriveBypass() 228 if (!keySize) { in ssl3_KeyAndMacDeriveBypass() 243 buildSSLKey(&key_block[i], keySize, &pwSpec->client.write_key_item, \ in ssl3_KeyAndMacDeriveBypass() 245 i += keySize; in ssl3_KeyAndMacDeriveBypass() 250 buildSSLKey(&key_block[i], keySize, &pwSpec->server.write_key_item, \ in ssl3_KeyAndMacDeriveBypass() 252 i += keySize; in ssl3_KeyAndMacDeriveBypass() 299 buildSSLKey(key_block2, keySize, &pwSpec->client.write_key_item, \ in ssl3_KeyAndMacDeriveBypass() 301 key_block2 += keySize; in ssl3_KeyAndMacDeriveBypass() [all …]
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/ |
D | PBEParametersGenerator.java | 75 public abstract CipherParameters generateDerivedParameters(int keySize); in generateDerivedParameters() argument 85 public abstract CipherParameters generateDerivedParameters(int keySize, int ivSize); in generateDerivedParameters() argument 94 public abstract CipherParameters generateDerivedMacParameters(int keySize); in generateDerivedMacParameters() argument
|
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/util/ |
D | u_keymap.c | 85 hash(const void *key, unsigned keySize) in hash() argument 89 keySize /= 4; /* convert from bytes to uints */ in hash() 92 for (i = 0; i < keySize; i++) { in hash() 110 util_new_keymap(unsigned keySize, unsigned maxEntries, in util_new_keymap() argument 125 map->key_size = keySize; in util_new_keymap()
|
D | u_keymap.h | 45 util_new_keymap(unsigned keySize, unsigned maxEntries,
|
/external/mesa3d/src/gallium/auxiliary/util/ |
D | u_keymap.c | 85 hash(const void *key, unsigned keySize) in hash() argument 89 keySize /= 4; /* convert from bytes to uints */ in hash() 92 for (i = 0; i < keySize; i++) { in hash() 110 util_new_keymap(unsigned keySize, unsigned maxEntries, in util_new_keymap() argument 125 map->key_size = keySize; in util_new_keymap()
|
D | u_keymap.h | 45 util_new_keymap(unsigned keySize, unsigned maxEntries,
|
/external/icu4c/samples/legacy/ |
D | newcol.cpp | 70 int32_t keySize = 0; in test_current() local 77 keySize = getSortKey_current("ja", data[i], -1, keys[i], 32); in test_current() 78 fprintf(stderr, "For i=%d, size of sortkey is %d\n", i, keySize); in test_current()
|
D | oldcol.cpp | 86 int32_t keySize = 0; in test_legacy() local 94 keySize = getSortKey_legacy("ja", data[i], -1, keys[i], 32); in test_legacy() 95 fprintf(stderr, "For i=%d, size of sortkey is %d\n", i, keySize); in test_legacy()
|
D | legacy.cpp | 49 void printKeys(const char *comment, uint8_t keys[][32], int32_t keySize) { in printKeys() argument 53 for(i = 0; i<keySize; i++) { in printKeys()
|
/external/apache-harmony/security/src/test/support/common/java/org/apache/harmony/security/tests/support/ |
D | MyKeyPairGenerator2.java | 35 int keySize; field in MyKeyPairGenerator2 59 keySize = keysize; in initialize()
|
D | MyKeyPairGenerator1.java | 39 public int keySize; field in MyKeyPairGenerator1 68 keySize = keysize; in initialize()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/provider/ |
D | BouncyCastleProviderConfiguration.java | 135 public DHParameterSpec getDHDefaultParameters(int keySize) in getDHDefaultParameters() argument 147 if (spec.getP().bitLength() == keySize) in getDHDefaultParameters() 158 if (specs[i].getP().bitLength() == keySize) in getDHDefaultParameters()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/digest/ |
D | SHA1.java | 139 int keySize = pbeSpec.getKeyLength(); in engineGenerateSecret() local 141 … CipherParameters param = PBE.Util.makePBEMacParameters(pbeSpec, scheme, digest, keySize); in engineGenerateSecret() 143 … return new BCPBEKey(this.algName, this.algOid, scheme, digest, keySize, ivSize, pbeSpec, param); in engineGenerateSecret()
|
/external/ganymed-ssh2/src/main/java/ch/ethz/ssh2/crypto/cipher/ |
D | BlockCipherFactory.java | 26 public CipherEntry(String type, int blockSize, int keySize, String cipherClass) in CipherEntry() argument 30 this.keysize = keySize; in CipherEntry()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/config/ |
D | ProviderConfiguration.java | 11 DHParameterSpec getDHDefaultParameters(int keySize); in getDHDefaultParameters() argument
|