Lines Matching defs:state
234 struct ccp_sha_exp_ctx state;
237 memset(&state, 0, sizeof(state));
239 state.type = rctx->type;
240 state.msg_bits = rctx->msg_bits;
241 state.first = rctx->first;
242 memcpy(state.ctx, rctx->ctx, sizeof(state.ctx));
243 state.buf_count = rctx->buf_count;
244 memcpy(state.buf, rctx->buf, sizeof(state.buf));
247 memcpy(out, &state, sizeof(state));
255 struct ccp_sha_exp_ctx state;
258 memcpy(&state, in, sizeof(state));
261 rctx->type = state.type;
262 rctx->msg_bits = state.msg_bits;
263 rctx->first = state.first;
264 memcpy(rctx->ctx, state.ctx, sizeof(rctx->ctx));
265 rctx->buf_count = state.buf_count;
266 memcpy(rctx->buf, state.buf, sizeof(rctx->buf));