Lines Matching refs:sctx
67 struct sha256_ce_state *sctx = shash_desc_ctx(desc); in sha256_ce_update() local
73 sctx->finalize = 0; in sha256_ce_update()
82 struct sha256_ce_state *sctx = shash_desc_ctx(desc); in sha256_ce_finup() local
83 bool finalize = !sctx->sst.count && !(len % SHA256_BLOCK_SIZE) && len; in sha256_ce_finup()
97 sctx->finalize = finalize; in sha256_ce_finup()
107 struct sha256_ce_state *sctx = shash_desc_ctx(desc); in sha256_ce_final() local
114 sctx->finalize = 0; in sha256_ce_final()
121 struct sha256_ce_state *sctx = shash_desc_ctx(desc); in sha256_ce_export() local
123 memcpy(out, &sctx->sst, sizeof(struct sha256_state)); in sha256_ce_export()
129 struct sha256_ce_state *sctx = shash_desc_ctx(desc); in sha256_ce_import() local
131 memcpy(&sctx->sst, in, sizeof(struct sha256_state)); in sha256_ce_import()
132 sctx->finalize = 0; in sha256_ce_import()