Home
last modified time | relevance | path

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

/optee_os/core/drivers/imx/dcp/
H A Ddcp.c514 hashdata->ctx_size = 0; in dcp_sha_do_init()
540 if (ADD_OVERFLOW(hashdata->ctx_size, len, &size_total)) in dcp_sha_do_update()
545 size_left = len - size_todo + hashdata->ctx_size; in dcp_sha_do_update()
555 offset = size_todo - hashdata->ctx_size; in dcp_sha_do_update()
556 memcpy(input.data, hashdata->ctx.data, hashdata->ctx_size); in dcp_sha_do_update()
557 memcpy(input.data + hashdata->ctx_size, data, offset); in dcp_sha_do_update()
558 hashdata->ctx_size = 0; in dcp_sha_do_update()
576 memcpy(hashdata->ctx.data + hashdata->ctx_size, data + offset, in dcp_sha_do_update()
578 hashdata->ctx_size += size_left; in dcp_sha_do_update()
609 if ((desc->ctrl0 & DCP_CONTROL0_HASH_INIT) && hashdata->ctx_size == 0) { in dcp_sha_do_final()
[all …]
/optee_os/core/drivers/crypto/ele/
H A Dele.c377 static TEE_Result imx_ele_derive_key(const uint8_t *ctx, size_t ctx_size, in imx_ele_derive_key() argument
387 uint16_t ctx_size; in imx_ele_derive_key() member
404 res = imx_ele_buf_alloc(&ele_ctx, ctx, ctx_size); in imx_ele_derive_key()
418 cmd.ctx_size = ctx_size; in imx_ele_derive_key()
/optee_os/core/include/drivers/imx/
H A Ddcp.h81 size_t ctx_size; member