Searched refs:inSize (Results 1 – 2 of 2) sorted by relevance
28 static int32_t PaddingPkcs5(char *data, size_t inSize) in PaddingPkcs5() argument30 if (inSize % AES_BLOCK_SIZE == 0) { in PaddingPkcs5()34 int32_t paddingLen = AES_BLOCK_SIZE - inSize % AES_BLOCK_SIZE; in PaddingPkcs5()35 int32_t needLen = paddingLen + inSize; in PaddingPkcs5()37 data[inSize + i] = paddingLen; in PaddingPkcs5()
348 static int32_t CheckAndCalculateSize(const uint32_t inSize, const uint32_t extraSize, uint32_t *out… in CheckAndCalculateSize() argument354 if (inSize > UINT32_MAX - NUM_TWO) { in CheckAndCalculateSize()358 if (((inSize + 2) / 3) > (UINT32_MAX / 4)) { // 2: fill it up to a multiple of three in CheckAndCalculateSize()362 if ((((inSize + 2) / 3) * 4) > UINT32_MAX - extraSize) { // 2: fill it up to a multiple of three in CheckAndCalculateSize()366 *outSize = (((inSize + 2) / 3) * 4) + extraSize; // 2: fill it up to a multiple of three in CheckAndCalculateSize()