• Home
  • Raw
  • Download

Lines Matching refs:buf_len

98     size_t buf_len;  member
190 i = ctx->buf_len - ctx->buf_off; in ok_read()
200 if (ctx->buf_len == ctx->buf_off) { in ok_read()
207 ctx->buf_len = ctx->buf_len_save - ctx->buf_off_save; in ok_read()
209 ctx->buf_len); in ok_read()
211 ctx->buf_len = 0; in ok_read()
222 n = IOBS - ctx->buf_len; in ok_read()
223 i = BIO_read(next, &(ctx->buf[ctx->buf_len]), n); in ok_read()
228 ctx->buf_len += i; in ok_read()
278 n = ctx->buf_len - ctx->buf_off; in ok_write()
293 if (ctx->buf_len == ctx->buf_off) { in ok_write()
294 ctx->buf_len = OK_BLOCK_BLOCK; in ok_write()
301 n = (inl + ctx->buf_len > OK_BLOCK_SIZE + OK_BLOCK_BLOCK) ? in ok_write()
302 (int)(OK_BLOCK_SIZE + OK_BLOCK_BLOCK - ctx->buf_len) : inl; in ok_write()
304 memcpy(&ctx->buf[ctx->buf_len], in, n); in ok_write()
305 ctx->buf_len += n; in ok_write()
309 if (ctx->buf_len >= OK_BLOCK_SIZE + OK_BLOCK_BLOCK) { in ok_write()
336 ctx->buf_len = 0; in ok_ctrl()
354 ret = ctx->blockout ? ctx->buf_len - ctx->buf_off : 0; in ok_ctrl()
373 ctx->buf_off = ctx->buf_len = 0; in ok_ctrl()
460 if (ctx->buf_len + 2 * md_size > OK_BLOCK_SIZE) in sig_out()
471 memcpy(&(ctx->buf[ctx->buf_len]), md_data, md_size); in sig_out()
472 longswap(&(ctx->buf[ctx->buf_len]), md_size); in sig_out()
473 ctx->buf_len += md_size; in sig_out()
477 if (!EVP_DigestFinal_ex(md, &(ctx->buf[ctx->buf_len]), NULL)) in sig_out()
479 ctx->buf_len += md_size; in sig_out()
504 if ((int)(ctx->buf_len - ctx->buf_off) < 2 * md_size) in sig_in()
521 if (ctx->buf_len != ctx->buf_off) { in sig_in()
523 ctx->buf_len - ctx->buf_off); in sig_in()
525 ctx->buf_len -= ctx->buf_off; in sig_in()
549 tl = ctx->buf_len - OK_BLOCK_BLOCK; in block_out()
557 if (!EVP_DigestFinal_ex(md, &(ctx->buf[ctx->buf_len]), NULL)) in block_out()
559 ctx->buf_len += md_size; in block_out()
588 if (ctx->buf_len < tl + OK_BLOCK_BLOCK + md_size) in block_in()
599 ctx->buf_len_save = ctx->buf_len; in block_in()
601 ctx->buf_len = tl + OK_BLOCK_BLOCK; in block_in()