Lines Matching refs:inputlen
751 unsigned inputlen,
761 inputlen,
768 padding = output[inputlen - 11];
775 if (output[inputlen - 10 - p] != padding) {
781 *outputlen = inputlen - padding - 10;
784 memcpy(digest, output + inputlen - 10, 10);
791 unsigned inputlen,
801 paddinglen = 8 - ((inputlen + 10) % 8);
804 memcpy(output, input, inputlen); /* text */
805 memset(output+inputlen, paddinglen, paddinglen);/* pad */
806 memcpy(output+inputlen+paddinglen, digest, 10); /* hmac */
808 len=inputlen+paddinglen+10;
872 unsigned inputlen,
882 inputlen,
889 memcpy(c->ivec, input + (inputlen - 8), 8);
892 padding = output[inputlen - 11];
899 if (output[inputlen - 10 - p] != padding) {
905 *outputlen = inputlen - padding - 10;
908 memcpy(digest, output + inputlen - 10, 10);
915 unsigned inputlen,
925 paddinglen = 8 - ((inputlen+10) % 8);
928 memcpy(output, input, inputlen); /* text */
929 memset(output+inputlen, paddinglen, paddinglen);/* pad */
930 memcpy(output+inputlen+paddinglen, digest, 10); /* hmac */
932 len = inputlen + paddinglen + 10;
1143 unsigned inputlen,
1150 input, output, inputlen-10);
1154 input+(inputlen-10), (char *) digest, 10);
1157 *outputlen = inputlen - 10;
1164 unsigned inputlen,
1170 *outputlen = inputlen+10;
1176 inputlen);
1181 (output)+inputlen, 10);
1472 unsigned inputlen,
1484 inputlen - MAC_SIZE, (CK_BYTE_PTR)output, &ulDataLen);
1495 (CK_BYTE_PTR)input+(inputlen-MAC_SIZE), MAC_SIZE, (CK_BYTE_PTR)digest,
1512 unsigned inputlen,
1520 CK_ULONG ulDataLen = inputlen;
1523 rv = C_EncryptUpdate(enc_context->hSession, (CK_BYTE_PTR)input, inputlen,
1529 "inputlen:%d outputlen:%d\n",
1530 rv, inputlen, ulDataLen);
1535 (CK_BYTE_PTR)output + inputlen, &ulDigestLen);
1553 unsigned inputlen,
1561 CK_ULONG ulDataLen = inputlen;
1565 inputlen, (CK_BYTE_PTR)output, &ulDataLen);
1573 if (ulDataLen != inputlen) {
1577 inputlen, ulDataLen);
1583 padding = output[inputlen - 11];
1590 if (output[inputlen - MAC_SIZE - p] != padding) {
1596 *outputlen = inputlen - padding - MAC_SIZE;
1599 memcpy(digest, output + inputlen - MAC_SIZE, MAC_SIZE);
1607 unsigned inputlen,
1619 paddinglen = 8 - ((inputlen + MAC_SIZE) % 8);
1622 memcpy(output, input, inputlen); /* text */
1623 memset(output+inputlen, paddinglen, paddinglen);/* pad */
1624 memcpy(output+inputlen+paddinglen, digest, MAC_SIZE); /* hmac */
1626 ulDataLen=inputlen+paddinglen+MAC_SIZE;
1634 "inputlen:%d outputlen:%d\n",
1813 unsigned *inputlen,
1828 if (*inputlen<4)
1829 tocopy=*inputlen;
1840 *inputlen-=tocopy;
1862 if (*inputlen==0) /* have to wait until next time for data */
1874 if (*inputlen < diff) /* not enough for a decode */
1876 memcpy(text->buffer+text->cursize, *input, *inputlen);
1877 text->cursize+=*inputlen;
1878 *inputlen=0;
1885 *inputlen-=diff;
1900 *outputlen = *inputlen;
1986 const char *input, unsigned inputlen,
1992 ret = _plug_decode(text->utils, context, input, inputlen,
2082 int inputlen,
2090 if (inputlen < 0)
2094 &(text->MAC_buf_len), inputlen + 4);
2100 memcpy(text->MAC_buf + 4, input, inputlen);
2104 text->utils->hmac_md5((unsigned char *)text->MAC_buf, inputlen + 4,
2108 text->utils->hmac_md5(text->MAC_buf, inputlen + 4,
2168 unsigned *inputlen,
2181 if (*inputlen < 4)
2182 tocopy = *inputlen;
2193 *inputlen -= tocopy;
2211 if (*inputlen == 0) /* have to wait until next time for data */
2222 if (*inputlen < diff) { /* not enough for a decode */
2223 memcpy(text->buffer + text->cursize, *input, *inputlen);
2224 text->cursize += *inputlen;
2225 *inputlen = 0;
2232 *inputlen -= diff;
2247 const char *input, unsigned inputlen,
2253 ret = _plug_decode(text->utils, context, input, inputlen,