Home
last modified time | relevance | path

Searched refs:inSize (Results 1 – 2 of 2) sorted by relevance

/base/security/huks/frameworks/crypto_lite/cipher/src/
Dcipher_aes.c28 static int32_t PaddingPkcs5(char *data, size_t inSize) in PaddingPkcs5() argument
30 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()
/base/security/huks/frameworks/huks_standard/main/os_dependency/ipc/src/
Dhks_ipc_serialization.c348 static int32_t CheckAndCalculateSize(const uint32_t inSize, const uint32_t extraSize, uint32_t *out… in CheckAndCalculateSize() argument
354 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()