Lines Matching refs:xof_state
153 if (!(ctx->xof_state == XOF_STATE_INIT || in generic_sha3_absorb()
154 ctx->xof_state == XOF_STATE_ABSORB)) in generic_sha3_absorb()
156 ctx->xof_state = XOF_STATE_ABSORB; in generic_sha3_absorb()
198 if (!(ctx->xof_state == XOF_STATE_INIT || in s390x_sha3_absorb()
199 ctx->xof_state == XOF_STATE_ABSORB)) in s390x_sha3_absorb()
203 fc |= ctx->xof_state == XOF_STATE_INIT ? S390X_KIMD_NIP : 0; in s390x_sha3_absorb()
204 ctx->xof_state = XOF_STATE_ABSORB; in s390x_sha3_absorb()
217 if (!(ctx->xof_state == XOF_STATE_INIT || in s390x_sha3_final()
218 ctx->xof_state == XOF_STATE_ABSORB)) in s390x_sha3_final()
221 fc |= ctx->xof_state == XOF_STATE_INIT ? S390X_KLMD_NIP : 0; in s390x_sha3_final()
222 ctx->xof_state = XOF_STATE_FINAL; in s390x_sha3_final()
235 if (!(ctx->xof_state == XOF_STATE_INIT || in s390x_shake_final()
236 ctx->xof_state == XOF_STATE_ABSORB)) in s390x_shake_final()
239 fc |= ctx->xof_state == XOF_STATE_INIT ? S390X_KLMD_NIP : 0; in s390x_shake_final()
240 ctx->xof_state = XOF_STATE_FINAL; in s390x_shake_final()
253 if (ctx->xof_state == XOF_STATE_FINAL) in s390x_shake_squeeze()
258 if (ctx->xof_state != XOF_STATE_SQUEEZE) { in s390x_shake_squeeze()
260 fc |= ctx->xof_state == XOF_STATE_INIT ? S390X_KLMD_NIP : 0; in s390x_shake_squeeze()
261 ctx->xof_state = XOF_STATE_SQUEEZE; in s390x_shake_squeeze()
267 ctx->xof_state = XOF_STATE_SQUEEZE; in s390x_shake_squeeze()
298 if (!(ctx->xof_state == XOF_STATE_INIT || in s390x_keccakc_final()
299 ctx->xof_state == XOF_STATE_ABSORB)) in s390x_keccakc_final()
302 fc |= ctx->xof_state == XOF_STATE_INIT ? S390X_KIMD_NIP : 0; in s390x_keccakc_final()
303 ctx->xof_state = XOF_STATE_FINAL; in s390x_keccakc_final()
339 if (ctx->xof_state == XOF_STATE_FINAL) in s390x_keccakc_squeeze()
346 if (ctx->xof_state != XOF_STATE_SQUEEZE) { in s390x_keccakc_squeeze()
352 fc |= ctx->xof_state == XOF_STATE_INIT ? S390X_KIMD_NIP : 0; in s390x_keccakc_squeeze()
357 if (ctx->bufsz != 0 || ctx->xof_state != XOF_STATE_SQUEEZE) { in s390x_keccakc_squeeze()
368 ctx->xof_state = XOF_STATE_SQUEEZE; in s390x_keccakc_squeeze()