Lines Matching refs:buf_len
99 size_t buf_len; member
187 i = ctx->buf_len - ctx->buf_off; in ok_read()
197 if (ctx->buf_len == ctx->buf_off) { in ok_read()
204 ctx->buf_len = ctx->buf_len_save - ctx->buf_off_save; in ok_read()
206 ctx->buf_len); in ok_read()
208 ctx->buf_len = 0; in ok_read()
219 n = IOBS - ctx->buf_len; in ok_read()
220 i = BIO_read(next, &(ctx->buf[ctx->buf_len]), n); in ok_read()
225 ctx->buf_len += i; in ok_read()
275 n = ctx->buf_len - ctx->buf_off; in ok_write()
290 if (ctx->buf_len == ctx->buf_off) { in ok_write()
291 ctx->buf_len = OK_BLOCK_BLOCK; in ok_write()
298 n = (inl + ctx->buf_len > OK_BLOCK_SIZE + OK_BLOCK_BLOCK) ? in ok_write()
299 (int)(OK_BLOCK_SIZE + OK_BLOCK_BLOCK - ctx->buf_len) : inl; in ok_write()
301 memcpy(&ctx->buf[ctx->buf_len], in, n); in ok_write()
302 ctx->buf_len += n; in ok_write()
306 if (ctx->buf_len >= OK_BLOCK_SIZE + OK_BLOCK_BLOCK) { in ok_write()
333 ctx->buf_len = 0; in ok_ctrl()
351 ret = ctx->blockout ? ctx->buf_len - ctx->buf_off : 0; in ok_ctrl()
370 ctx->buf_off = ctx->buf_len = 0; in ok_ctrl()
448 if (ctx->buf_len + 2 * md_size > OK_BLOCK_SIZE) in sig_out()
459 memcpy(&(ctx->buf[ctx->buf_len]), md_data, md_size); in sig_out()
460 longswap(&(ctx->buf[ctx->buf_len]), md_size); in sig_out()
461 ctx->buf_len += md_size; in sig_out()
465 if (!EVP_DigestFinal_ex(md, &(ctx->buf[ctx->buf_len]), NULL)) in sig_out()
467 ctx->buf_len += md_size; in sig_out()
494 if ((int)(ctx->buf_len - ctx->buf_off) < 2 * md_size) in sig_in()
511 if (ctx->buf_len != ctx->buf_off) { in sig_in()
513 ctx->buf_len - ctx->buf_off); in sig_in()
515 ctx->buf_len -= ctx->buf_off; in sig_in()
541 tl = ctx->buf_len - OK_BLOCK_BLOCK; in block_out()
549 if (!EVP_DigestFinal_ex(md, &(ctx->buf[ctx->buf_len]), NULL)) in block_out()
551 ctx->buf_len += md_size; in block_out()
582 if (ctx->buf_len < tl + OK_BLOCK_BLOCK + md_size) in block_in()
593 ctx->buf_len_save = ctx->buf_len; in block_in()
595 ctx->buf_len = tl + OK_BLOCK_BLOCK; in block_in()