Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/crypto/inside-secure/
Dsafexcel_hash.c38 u8 state_sz; /* expected sate size, only set once */ member
140 cdesc->control_data.control0 |= CONTEXT_CONTROL_SIZE(2 * req->state_sz / sizeof(u32)); in safexcel_context_control()
142 memcpy(ctx->base.ctxr->data, ctx->ipad, req->state_sz); in safexcel_context_control()
143 memcpy(ctx->base.ctxr->data + req->state_sz / sizeof(u32), in safexcel_context_control()
144 ctx->opad, req->state_sz); in safexcel_context_control()
177 dma_unmap_single(priv->dev, sreq->result_dma, sreq->state_sz, in safexcel_handle_req_result()
306 safexcel_context_control(ctx, req, first_cdesc, req->state_sz); in safexcel_ahash_send_req()
309 safexcel_hash_token(first_cdesc, len, req->state_sz); in safexcel_ahash_send_req()
311 req->result_dma = dma_map_single(priv->dev, req->state, req->state_sz, in safexcel_ahash_send_req()
320 req->state_sz); in safexcel_ahash_send_req()
[all …]
Dsafexcel_cipher.c47 u32 state_sz; member
241 (memcmp(ctx->ipad, istate.state, ctx->state_sz) || in safexcel_aead_aes_setkey()
242 memcmp(ctx->opad, ostate.state, ctx->state_sz))) in safexcel_aead_aes_setkey()
249 memcpy(ctx->ipad, &istate.state, ctx->state_sz); in safexcel_aead_aes_setkey()
250 memcpy(ctx->opad, &ostate.state, ctx->state_sz); in safexcel_aead_aes_setkey()
317 ctrl_size += ctx->state_sz / sizeof(u32) * 2; in safexcel_context_control()
416 ctx->ipad, ctx->state_sz); in safexcel_send_req()
417 memcpy(ctx->base.ctxr->data + (ctx->key_len + ctx->state_sz) / sizeof(u32), in safexcel_send_req()
418 ctx->opad, ctx->state_sz); in safexcel_send_req()
1169 ctx->state_sz = SHA1_DIGEST_SIZE; in safexcel_aead_sha1_cra_init()
[all …]