Home
last modified time | relevance | path

Searched refs:wsize (Results 1 – 9 of 9) sorted by relevance

/lib/crypto/mpi/
Dmpi-add.c23 mpi_size_t usize, wsize; in mpi_add_ui() local
31 wsize = usize + 1; in mpi_add_ui()
32 if (w->alloced < wsize) in mpi_add_ui()
33 mpi_resize(w, wsize); in mpi_add_ui()
41 wsize = v ? 1:0; in mpi_add_ui()
46 wsize = usize + cy; in mpi_add_ui()
53 wsize = 1; in mpi_add_ui()
57 wsize = usize - (wp[usize-1] == 0); in mpi_add_ui()
62 w->nlimbs = wsize; in mpi_add_ui()
70 mpi_size_t usize, vsize, wsize; in mpi_add() local
[all …]
Dmpi-mul.c18 mpi_size_t usize, vsize, wsize; in mpi_mul() local
45 wsize = usize + vsize; in mpi_mul()
46 if (w->alloced < wsize) { in mpi_mul()
48 wp = mpi_alloc_limb_space(wsize); in mpi_mul()
51 mpi_resize(w, wsize); in mpi_mul()
72 wsize = 0; in mpi_mul()
75 wsize -= cy ? 0:1; in mpi_mul()
79 mpi_assign_limb_space(w, wp, wsize); in mpi_mul()
80 w->nlimbs = wsize; in mpi_mul()
Dec.c202 mpi_size_t wsize = LIMB_SIZE_25519; in ec_addm_25519() local
206 if (w->nlimbs != wsize || u->nlimbs != wsize || v->nlimbs != wsize) in ec_addm_25519()
214 mpihelp_add_n(wp, up, vp, wsize); in ec_addm_25519()
215 borrow = mpihelp_sub_n(wp, wp, ctx->p->d, wsize); in ec_addm_25519()
216 mpih_set_cond(n, ctx->p->d, wsize, (borrow != 0UL)); in ec_addm_25519()
217 mpihelp_add_n(wp, wp, n, wsize); in ec_addm_25519()
224 mpi_size_t wsize = LIMB_SIZE_25519; in ec_subm_25519() local
228 if (w->nlimbs != wsize || u->nlimbs != wsize || v->nlimbs != wsize) in ec_subm_25519()
236 borrow = mpihelp_sub_n(wp, up, vp, wsize); in ec_subm_25519()
237 mpih_set_cond(n, ctx->p->d, wsize, (borrow != 0UL)); in ec_subm_25519()
[all …]
/lib/zlib_inflate/
Dinffast.c78 unsigned wsize; /* window size or zero if not using window */ in inflate_fast() local
105 wsize = state->wsize; in inflate_fast()
189 from += wsize - op; in inflate_fast()
199 from += wsize + write - op; in inflate_fast()
Dinflate.c51 state->wsize = 1U << state->wbits; in zlib_inflateReset()
129 if (copy >= state->wsize) { in zlib_updatewindow()
130 memcpy(state->window, strm->next_out - state->wsize, state->wsize); in zlib_updatewindow()
132 state->whave = state->wsize; in zlib_updatewindow()
135 dist = state->wsize - state->write; in zlib_updatewindow()
142 state->whave = state->wsize; in zlib_updatewindow()
146 if (state->write == state->wsize) state->write = 0; in zlib_updatewindow()
147 if (state->whave < state->wsize) state->whave += dist; in zlib_updatewindow()
680 from = state->window + (state->wsize - copy); in zlib_inflate()
745 (state->wsize || (state->mode < CHECK && out != strm->avail_out))) in zlib_inflate()
Dinflate.h86 unsigned wsize; /* window size or zero if not using window */ member
/lib/zlib_deflate/
Ddeflate.c751 uInt wsize = s->w_size; in fill_window() local
758 more = wsize; in fill_window()
769 } else if (s->strstart >= wsize+MAX_DIST(s)) { in fill_window()
771 memcpy((char *)s->window, (char *)s->window+wsize, in fill_window()
772 (unsigned)wsize); in fill_window()
773 s->match_start -= wsize; in fill_window()
774 s->strstart -= wsize; /* we now have strstart >= MAX_DIST */ in fill_window()
775 s->block_start -= (long) wsize; in fill_window()
787 *p = (Pos)(m >= wsize ? m-wsize : NIL); in fill_window()
790 n = wsize; in fill_window()
[all …]
/lib/
Ddecompress_inflate.c139 WS(strm)->inflate_state.wsize = 0; in __gunzip()
/lib/zlib_dfltcc/
Ddfltcc_inflate.c122 if (!state->window || state->wsize == 0) { in dfltcc_inflate()