Home
last modified time | relevance | path

Searched refs:keySize (Results 1 – 25 of 70) sorted by relevance

123

/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/generators/
DPKCS5S1ParametersGenerator.java63 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 …]
DOpenSSLPBEParametersGenerator.java91 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()
DPKCS5S2ParametersGenerator.java116 int keySize) in generateDerivedParameters() argument
118 keySize = keySize / 8; in generateDerivedParameters()
120 byte[] dKey = Arrays.copyOfRange(generateDerivedKey(keySize), 0, keySize); in generateDerivedParameters()
122 return new KeyParameter(dKey, 0, keySize); in generateDerivedParameters()
135 int keySize, in generateDerivedParameters() argument
138 keySize = keySize / 8; in generateDerivedParameters()
141 byte[] dKey = generateDerivedKey(keySize + ivSize); in generateDerivedParameters()
143 return new ParametersWithIV(new KeyParameter(dKey, 0, keySize), dKey, keySize, ivSize); in generateDerivedParameters()
154 int keySize) in generateDerivedMacParameters() argument
156 return generateDerivedParameters(keySize); in generateDerivedMacParameters()
DPKCS12ParametersGenerator.java172 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/
DPBESecretKeyFactory.java19 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()
DBaseMac.java36 private int keySize = 160; field in BaseMac
48 int keySize) in BaseMac() argument
53 this.keySize = keySize; in BaseMac()
97 int keySize = 160; in engineInit() local
110 keySize = 256; in engineInit()
113 param = PBE.Util.makePBEMacParameters(k, PKCS12, digest, keySize, pbeSpec); in engineInit()
DPBE.java188 int keySize, in makePBEParameters() argument
213 param = generator.generateDerivedParameters(keySize, ivSize); in makePBEParameters()
217 param = generator.generateDerivedParameters(keySize); in makePBEParameters()
343 int keySize) in makePBEMacParameters() argument
353 param = generator.generateDerivedMacParameters(keySize); in makePBEMacParameters()
371 int keySize, in makePBEParameters() argument
384 param = generator.generateDerivedParameters(keySize, ivSize); in makePBEParameters()
388 param = generator.generateDerivedParameters(keySize); in makePBEParameters()
408 int keySize, in makePBEMacParameters() argument
418 param = generator.generateDerivedMacParameters(keySize); in makePBEMacParameters()
DBCPBEKey.java19 int keySize; field in BCPBEKey
33 int keySize, in BCPBEKey() argument
42 this.keySize = keySize; in BCPBEKey()
104 return keySize; in getKeySize()
DBaseKeyGenerator.java19 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()
/external/skia/src/gpu/
DGrLayerCache.h85 const int* key, int keySize, bool copyKey = false)
86 : fKeySize(keySize) in fKeySize()
93 int* tempKey = new int[keySize]; in fKeySize()
94 memcpy(tempKey, key, keySize*sizeof(int)); in fKeySize()
124 int keySize() const { SkASSERT(fFreeKey); return fKeySize; } in keySize() function
157 int keySize, in GrCachedLayer()
159 : fKey(pictureID, ctm, key, keySize, true) in GrCachedLayer()
194 int keySize() const { return fKey.keySize(); } in keySize() function
315 const int* key, int keySize);
321 const int* key, int keySize,
[all …]
DGrLayerCache.cpp136 int keySize, in createLayer() argument
141 keySize, paint); in createLayer()
147 const int* key, int keySize) { in findLayer() argument
149 return fLayerHash.find(GrCachedLayer::Key(pictureID, initialMat, key, keySize)); in findLayer()
158 int keySize, in findLayerOrCreate() argument
161 GrCachedLayer* layer = fLayerHash.find(GrCachedLayer::Key(pictureID, initialMat, key, keySize)); in findLayerOrCreate()
165 key, keySize, paint); in findLayerOrCreate()
549 for (int i = 0; i < layer->fKey.keySize(); ++i) { in writeLayersToDisk()
/external/lzma/CPP/7zip/Crypto/
DMyAes.h30 CAesCbcCoder(bool encodeMode, unsigned keySize);
41 CAesCbcEncoder(unsigned keySize = 0): CAesCbcCoder(true, keySize) {} in CAesCbcCoder()
46 CAesCbcDecoder(unsigned keySize = 0): CAesCbcCoder(false, keySize) {} in CAesCbcCoder()
/external/jetty/src/java/org/eclipse/jetty/server/ssl/
DSslCertificates.java112 Integer keySize; in customize() local
119 keySize=cachedInfo.getKeySize(); in customize()
125 keySize=new Integer(ServletSSL.deduceKeyLength(cipherSuite)); in customize()
129 cachedInfo=new CachedInfo(keySize,certs,idStr); in customize()
137 request.setAttribute("javax.servlet.request.key_size",keySize); in customize()
159 CachedInfo(Integer keySize, X509Certificate[] certs,String idStr) in CachedInfo() argument
161 this._keySize=keySize; in CachedInfo()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/symmetric/
DDES.java217 int keySize, in engineInit() argument
220 super.engineInit(keySize, random); in engineInit()
298 private int keySize; field in DES.DESPBEKeyFactory
307 int keySize, in DESPBEKeyFactory() argument
315 this.keySize = keySize; in DESPBEKeyFactory()
330 … return new BCPBEKey(this.algName, this.algOid, scheme, digest, keySize, ivSize, pbeSpec, null); in engineGenerateSecret()
335 param = PBE.Util.makePBEParameters(pbeSpec, scheme, digest, keySize, ivSize); in engineGenerateSecret()
339 param = PBE.Util.makePBEMacParameters(pbeSpec, scheme, digest, keySize); in engineGenerateSecret()
354 … return new BCPBEKey(this.algName, this.algOid, scheme, digest, keySize, ivSize, pbeSpec, param); in engineGenerateSecret()
/external/lzma/C/
DAes.c130 void MY_FAST_CALL Aes_SetKey_Enc(UInt32 *w, const Byte *key, unsigned keySize) in Aes_SetKey_Enc() argument
133 wSize = keySize + 28; in Aes_SetKey_Enc()
134 keySize /= 4; in Aes_SetKey_Enc()
135 w[0] = ((UInt32)keySize / 2) + 3; in Aes_SetKey_Enc()
138 for (i = 0; i < keySize; i++, key += 4) in Aes_SetKey_Enc()
144 unsigned rem = i % keySize; in Aes_SetKey_Enc()
146 t = Ui32(Sbox[gb1(t)] ^ Rcon[i / keySize], Sbox[gb2(t)], Sbox[gb3(t)], Sbox[gb0(t)]); in Aes_SetKey_Enc()
147 else if (keySize > 6 && rem == 4) in Aes_SetKey_Enc()
149 w[i] = w[i - keySize] ^ t; in Aes_SetKey_Enc()
153 void MY_FAST_CALL Aes_SetKey_Dec(UInt32 *w, const Byte *key, unsigned keySize) in Aes_SetKey_Dec() argument
[all …]
DAes.h23 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/tpm2/
DEncryptDecrypt.c28 UINT16 keySize; in TPM2_EncryptDecrypt() local
61 keySize = symKey->publicArea.parameters.symDetail.sym.keyBits.sym; in TPM2_EncryptDecrypt()
63 blockSize = CryptGetSymmetricBlockSize(alg, keySize); in TPM2_EncryptDecrypt()
90 keySize, in->mode, key, in TPM2_EncryptDecrypt()
100 keySize, in TPM2_EncryptDecrypt()
DCpriSym_fp.h34 #define _cpri__AESDecryptCTR(dOut, keySize, key, iv, dInSize, dIn) \ argument
35 _cpri__AESEncryptCTR(((BYTE *)dOut), ((UINT32)keySize), ((BYTE *)key), \
64 #define _cpri__SM4DecryptCTR(dOut, keySize, key, iv, dInSize, dIn) \ argument
65 _cpri__SM4EncryptCTR(((BYTE *)dOut), ((UINT32)keySize), ((BYTE *)key), \
Dstubs_hash.c13 UINT16 keySize, // IN: the size of the HMAC key in _cpri__StartHMAC() argument
25 if(keySize > blockSize) in _cpri__StartHMAC()
30 _cpri__UpdateHash(&localState, keySize, key); in _cpri__StartHMAC()
37 memcpy(oPadKey->buffer, key, keySize); in _cpri__StartHMAC()
38 oPadKey->size = keySize; in _cpri__StartHMAC()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/
DPBEParametersGenerator.java75 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/mesa3d/src/gallium/auxiliary/util/
Du_keymap.c85 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()
/external/icu/icu4c/source/samples/legacy/
Dnewcol.cpp70 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()
Doldcol.cpp86 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()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/spec/
DPBKDF2KeySpec.java24 …public PBKDF2KeySpec(char[] password, byte[] salt, int iterationCount, int keySize, AlgorithmIdent… in PBKDF2KeySpec() argument
26 super(password, salt, iterationCount, keySize); in PBKDF2KeySpec()
/external/apache-harmony/security/src/test/support/common/java/org/apache/harmony/security/tests/support/
DMyKeyPairGenerator2.java34 int keySize; field in MyKeyPairGenerator2
58 keySize = keysize; in initialize()

123