Lines Matching +full:int16 +full:- +full:array
47 static const INT16 alg##KeyBlockSizes[] = { \
48 ALG##_KEY_SIZES_BITS, -1, ALG##_BLOCK_SIZES };
78 // (-1). After the delimiter is a list of block sizes with each entry corresponding
81 // Return Type: INT16
84 LIB_EXPORT INT16
90 const INT16 *sizes; in CryptGetSymmetricBlockSize()
91 INT16 i; in CryptGetSymmetricBlockSize()
99 // Get the pointer to the block size array in CryptGetSymmetricBlockSize()
147 INT16 blockSize; in CryptSymmetricEncrypt()
161 // the caller is providing an array of 0's that is equal to [MAX_SYM_BLOCK_SIZE] in CryptSymmetricEncrypt()
165 ivInOut->t.size = blockSize; in CryptSymmetricEncrypt()
166 iv = ivInOut->t.buffer; in CryptSymmetricEncrypt()
184 for(; dSize > 0; dSize -= blockSize) in CryptSymmetricEncrypt()
189 //increment the counter (counter is big-endian so start at end) in CryptSymmetricEncrypt()
190 for(i = blockSize - 1; i >= 0; i--) in CryptSymmetricEncrypt()
195 for(i = (dSize < blockSize) ? dSize : blockSize; i > 0; i--) in CryptSymmetricEncrypt()
203 for(; dSize > 0; dSize -= blockSize) in CryptSymmetricEncrypt()
210 for(i = (dSize < blockSize) ? dSize : blockSize; i > 0; i--) in CryptSymmetricEncrypt()
223 for(; dSize > 0; dSize -= blockSize) in CryptSymmetricEncrypt()
226 for(i = blockSize; i > 0; i--) in CryptSymmetricEncrypt()
230 for(i = blockSize; i > 0; i--) in CryptSymmetricEncrypt()
238 for(; dSize > 0; dSize -= blockSize) in CryptSymmetricEncrypt()
243 for(i = (int)(dSize < blockSize) ? dSize : blockSize; i > 0; i--) in CryptSymmetricEncrypt()
262 for(; dSize > 0; dSize -= blockSize) in CryptSymmetricEncrypt()
301 INT16 blockSize; in CryptSymmetricDecrypt()
323 // the caller is providing an array of 0's that is equal to [MAX_SYM_BLOCK_SIZE] in CryptSymmetricDecrypt()
327 ivInOut->t.size = blockSize; in CryptSymmetricDecrypt()
328 iv = ivInOut->t.buffer; in CryptSymmetricDecrypt()
363 // Now do the mode-dependent decryption in CryptSymmetricDecrypt()
370 for(; dSize > 0; dSize -= blockSize) in CryptSymmetricDecrypt()
373 for(i = blockSize; i > 0; i--) in CryptSymmetricDecrypt()
378 for(i = blockSize; i > 0; i--) in CryptSymmetricDecrypt()
387 for(; dSize > 0; dSize -= blockSize) in CryptSymmetricDecrypt()
393 for(i = (dSize < blockSize) ? dSize : blockSize; i > 0; i--) in CryptSymmetricDecrypt()
408 for(; dSize > 0; dSize -= blockSize) in CryptSymmetricDecrypt()
413 //increment the counter (counter is big-endian so start at end) in CryptSymmetricDecrypt()
414 for(i = blockSize - 1; i >= 0; i--) in CryptSymmetricDecrypt()
419 for(i = (dSize < blockSize) ? dSize : blockSize; i > 0; i--) in CryptSymmetricDecrypt()
426 for(; dSize > 0; dSize -= blockSize) in CryptSymmetricDecrypt()
437 for(; dSize > 0; dSize -= blockSize) in CryptSymmetricDecrypt()
444 for(i = (dSize < blockSize) ? dSize : blockSize; i > 0; i--) in CryptSymmetricDecrypt()
466 if(key->t.size != BITS_TO_BYTES(symDef->keyBits.sym)) in CryptSymKeyValidate()
469 if(symDef->algorithm == TPM_ALG_TDES && !CryptDesValidateKey(key)) in CryptSymKeyValidate()