Searched refs:padLen (Results 1 – 3 of 3) sorted by relevance
45 int32_t padLen = data[dataLen - 1]; in UnpaddingPkcs5() local47 if (padLen <= 0 || padLen >= AES_BLOCK_SIZE) { in UnpaddingPkcs5()51 for (int32_t i = 0; i < padLen; i++) { in UnpaddingPkcs5()52 if (data[dataLen - 1 - i] != padLen) { in UnpaddingPkcs5()57 return (dataLen - padLen); in UnpaddingPkcs5()
282 #define SECUREC_SAFE_PADDING(padChar, padLen, _stream, outChars) \ argument284 for (ii = 0; ii < padLen; ++ii) { \288 _stream->count -= padLen * (int)(sizeof(SecChar)); \289 *(outChars) = *(outChars) + (padLen); \
122 #define SECUREC_SAFE_PADDING(padChar, padLen, _stream, outChars) do { \ argument123 for (ii = 0; ii < padLen; ++ii) { \127 _stream->count -= padLen * (int)(sizeof(SecChar)); \128 *(outChars) = *(outChars) + (padLen); \