Lines Matching refs:OK_BLOCK_BLOCK
94 #define OK_BLOCK_BLOCK 4 macro
95 #define IOBS (OK_BLOCK_SIZE+ OK_BLOCK_BLOCK+ 3*EVP_MAX_MD_SIZE)
293 ctx->buf_len = OK_BLOCK_BLOCK; in ok_write()
300 n = (inl + ctx->buf_len > OK_BLOCK_SIZE + OK_BLOCK_BLOCK) ? in ok_write()
301 (int)(OK_BLOCK_SIZE + OK_BLOCK_BLOCK - ctx->buf_len) : inl; in ok_write()
308 if (ctx->buf_len >= OK_BLOCK_SIZE + OK_BLOCK_BLOCK) { in ok_write()
538 tl = ctx->buf_len - OK_BLOCK_BLOCK; in block_out()
544 (unsigned char *)&(ctx->buf[OK_BLOCK_BLOCK]), tl)) in block_out()
570 assert(sizeof(tl) >= OK_BLOCK_BLOCK); /* always true */ in block_in()
579 if (ctx->buf_len < tl + OK_BLOCK_BLOCK + md_size) in block_in()
583 (unsigned char *)&(ctx->buf[OK_BLOCK_BLOCK]), tl)) in block_in()
587 if (memcmp(&(ctx->buf[tl + OK_BLOCK_BLOCK]), tmp, md_size) == 0) { in block_in()
589 ctx->buf_off_save = tl + OK_BLOCK_BLOCK + md_size; in block_in()
591 ctx->buf_off = OK_BLOCK_BLOCK; in block_in()
592 ctx->buf_len = tl + OK_BLOCK_BLOCK; in block_in()