Home
last modified time | relevance | path

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

/Zephyr-latest/drivers/crypto/
Dcrypto_npcx_sha.c87 struct npcx_sha_context *npcx_ctx = &npcx_session->npcx_sha_ctx; in npcx_sha_compute() local
106 ret = NPCX_NCL_SHA->start(npcx_ctx->handle, sha_type); in npcx_sha_compute()
115 ret = NPCX_NCL_SHA->update(npcx_ctx->handle, pkt->in_buf, pkt->in_len); in npcx_sha_compute()
125 ret = NPCX_NCL_SHA->finish(npcx_ctx->handle, pkt->out_buf); in npcx_sha_compute()
139 struct npcx_sha_context *npcx_ctx; in npcx_hash_session_setup() local
164 npcx_ctx = &npcx_sessions[ctx_idx].npcx_sha_ctx; in npcx_hash_session_setup()
165 NPCX_NCL_SHA->init_context(npcx_ctx->handle); in npcx_hash_session_setup()
166 NPCX_NCL_SHA->power(npcx_ctx->handle, 1); in npcx_hash_session_setup()
167 NPCX_NCL_SHA->init(npcx_ctx->handle); in npcx_hash_session_setup()
168 NPCX_NCL_SHA->reset(npcx_ctx->handle); in npcx_hash_session_setup()
[all …]