Lines Matching refs:padLen
183 int i, numBlocks, padLen;
204 padLen = 16 - (inputOctets - 16*numBlocks);
205 if (padLen > 0 && padLen <= 16)
207 bcopy(input, block, 16 - padLen);
208 for (cp = block + 16 - padLen; cp < block + 16; cp++)
209 *cp = padLen;
225 padLen = 16 - inputOctets % 16;
226 if (padLen == 16)
227 padLen = 0;
228 if (padLen > 0 && padLen <= 16)
230 for (i = 0; i < 16 - padLen; i++) {
233 for (i = 16 - padLen; i < 16; i++) {
234 block[i] = (BYTE)padLen ^ iv[i];
333 int i, numBlocks, padLen;
361 padLen = block[15];
362 if (padLen >= 16) {
365 for (i = 16 - padLen; i < 16; i++) {
366 if (block[i] != padLen) {
370 bcopy(block, outBuffer, 16 - padLen);
393 padLen = block[15];
394 if (padLen <= 0 || padLen > 16) {
397 for (i = 16 - padLen; i < 16; i++) {
398 if (block[i] != padLen) {
402 bcopy(block, outBuffer, 16 - padLen);
409 return 16*numBlocks - padLen;