Lines Matching refs:bufp
71 digest_buf_t *bufp;
77 bufp = opp->context;
79 if (bufp != NULL) {
80 bufp->indata_len = 0;
85 if (buflen > bufp->buf_len) {
86 free(bufp->buf);
87 bufp->buf = NULL;
90 bufp = opp->context = calloc(1, sizeof (digest_buf_t));
91 if (bufp == NULL) {
96 if (bufp->buf == NULL) {
97 bufp->buf = malloc(buflen);
98 if (bufp->buf == NULL) {
99 free(bufp);
103 bufp->buf_len = buflen;
157 digest_buf_t *bufp;
180 bufp = opp->context;
181 if (bufp == NULL) {
186 if (bufp->indata_len + ulPartLen > maxlen) {
188 } else if (ulPartLen > (bufp->buf_len - bufp->indata_len)) {
189 size_t siz = ulPartLen < bufp->buf_len ?
190 bufp->buf_len * 2 : bufp->buf_len + ulPartLen;
191 uint8_t *old = bufp->buf;
193 bufp->buf = realloc(bufp->buf, siz);
194 if (bufp->buf == NULL) {
196 bufp->buf = old;
199 bufp->buf_len = siz;
216 DO_SOFT_UPDATE(opp, bufp->buf, bufp->indata_len, opflag);
226 bcopy(pPart, bufp->buf + bufp->indata_len, ulPartLen);
227 bufp->indata_len += ulPartLen;