Lines Matching refs:buf_off
148 size_t buf_off; member
185 ctx->buf_off=0; in ok_new()
229 i=ctx->buf_len-ctx->buf_off; in ok_read()
231 memcpy(out,&(ctx->buf[ctx->buf_off]),i); in ok_read()
235 ctx->buf_off+=i; in ok_read()
238 if (ctx->buf_len == ctx->buf_off) in ok_read()
240 ctx->buf_off=0; in ok_read()
300 n=ctx->buf_len-ctx->buf_off; in ok_write()
303 i=BIO_write(b->next_bio,&(ctx->buf[ctx->buf_off]),n); in ok_write()
311 ctx->buf_off+=i; in ok_write()
317 if (ctx->buf_len == ctx->buf_off) in ok_write()
320 ctx->buf_off=0; in ok_write()
358 ctx->buf_off=0; in ok_ctrl()
375 ret=ctx->blockout ? ctx->buf_len-ctx->buf_off : 0; in ok_ctrl()
395 ctx->buf_off=ctx->buf_len=0; in ok_ctrl()
494 if((int)(ctx->buf_len-ctx->buf_off) < 2*md->digest->md_size) return; in sig_in()
497 memcpy(md->md_data, &(ctx->buf[ctx->buf_off]), md->digest->md_size); in sig_in()
499 ctx->buf_off+= md->digest->md_size; in sig_in()
503 ret= memcmp(&(ctx->buf[ctx->buf_off]), tmp, md->digest->md_size) == 0; in sig_in()
504 ctx->buf_off+= md->digest->md_size; in sig_in()
508 if(ctx->buf_len != ctx->buf_off) in sig_in()
510 memmove(ctx->buf, &(ctx->buf[ctx->buf_off]), ctx->buf_len- ctx->buf_off); in sig_in()
512 ctx->buf_len-= ctx->buf_off; in sig_in()
513 ctx->buf_off= 0; in sig_in()
566 ctx->buf_off= OK_BLOCK_BLOCK; in block_in()