Lines Matching refs:state
76 ctx->state = CHACHAPOLY_STATE_INIT; in mbedtls_chachapoly_init()
90 ctx->state = CHACHAPOLY_STATE_INIT; in mbedtls_chachapoly_free()
134 ctx->state = CHACHAPOLY_STATE_AAD; in mbedtls_chachapoly_starts()
147 if (ctx->state != CHACHAPOLY_STATE_AAD) { in mbedtls_chachapoly_update_aad()
163 if ((ctx->state != CHACHAPOLY_STATE_AAD) && in mbedtls_chachapoly_update()
164 (ctx->state != CHACHAPOLY_STATE_CIPHERTEXT)) { in mbedtls_chachapoly_update()
168 if (ctx->state == CHACHAPOLY_STATE_AAD) { in mbedtls_chachapoly_update()
169 ctx->state = CHACHAPOLY_STATE_CIPHERTEXT; in mbedtls_chachapoly_update()
210 if (ctx->state == CHACHAPOLY_STATE_INIT) { in mbedtls_chachapoly_finish()
214 if (ctx->state == CHACHAPOLY_STATE_AAD) { in mbedtls_chachapoly_finish()
219 } else if (ctx->state == CHACHAPOLY_STATE_CIPHERTEXT) { in mbedtls_chachapoly_finish()
226 ctx->state = CHACHAPOLY_STATE_FINISHED; in mbedtls_chachapoly_finish()