Home | History | Annotate | Download | only in opencrypto

Lines Matching refs:buflen

91 	if (ctx->buflen == sizeof(ctx->buf)) {
95 ctx->buflen = 0;
97 if (ctx->buflen + len < sizeof(ctx->buf)) {
98 memcpy(ctx->buf + ctx->buflen, addr, len);
99 ctx->buflen += len;
102 if (ctx->buflen && ctx->buflen + len > sizeof(ctx->buf)) {
103 memcpy(ctx->buf + ctx->buflen, addr,
104 sizeof(ctx->buf) - ctx->buflen);
108 addr += sizeof(ctx->buf) - ctx->buflen;
109 ctx->buflen = 0;
120 memcpy(ctx->buf + ctx->buflen, addr, ep - addr);
121 ctx->buflen += ep - addr;
135 if (ctx->buflen == sizeof(ctx->buf)) {
142 for (i = ctx->buflen; i < sizeof(ctx->buf); i++)
143 ctx->buf[i] = (i == ctx->buflen) ? 0x80 : 0x00;