Home
last modified time | relevance | path

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

/optee_os-3.20.0/core/pta/
A Dsecstor_ta_mgmt.c45 void *hash_ctx = NULL; in install_ta() local
69 res = crypto_hash_alloc_ctx(&hash_ctx, in install_ta()
73 res = crypto_hash_init(hash_ctx); in install_ta()
76 res = crypto_hash_update(hash_ctx, (uint8_t *)shdr, sizeof(*shdr)); in install_ta()
88 res = crypto_hash_update(hash_ctx, (uint8_t *)&bs_ta, sizeof(bs_ta)); in install_ta()
109 res = crypto_hash_update(hash_ctx, buf, l); in install_ta()
118 res = crypto_hash_final(hash_ctx, buf, shdr->hash_size); in install_ta()
126 crypto_hash_free_ctx(hash_ctx); in install_ta()
133 crypto_hash_free_ctx(hash_ctx); in install_ta()
/optee_os-3.20.0/core/drivers/crypto/aspeed/
A Dhace_ast2600.c43 struct crypto_hash_ctx hash_ctx; member
95 hctx = container_of(ctx, struct ast2600_hace_ctx, hash_ctx); in ast2600_hace_process()
139 hctx = container_of(ctx, struct ast2600_hace_ctx, hash_ctx); in ast2600_hace_init()
178 hctx = container_of(ctx, struct ast2600_hace_ctx, hash_ctx); in ast2600_hace_update()
228 hctx = container_of(ctx, struct ast2600_hace_ctx, hash_ctx); in ast2600_hace_final()
295 hctx = container_of(ctx, struct ast2600_hace_ctx, hash_ctx); in ast2600_hace_free()
308 src_hctx = container_of(src_ctx, struct ast2600_hace_ctx, hash_ctx); in ast2600_hace_copy_state()
309 dst_hctx = container_of(dst_ctx, struct ast2600_hace_ctx, hash_ctx); in ast2600_hace_copy_state()
311 dst_hctx->hash_ctx = src_hctx->hash_ctx; in ast2600_hace_copy_state()
351 hctx->hash_ctx.ops = &ast2600_hace_ops; in ast2600_hace_alloc()
[all …]
/optee_os-3.20.0/core/crypto/
A Dsm3-hash.c22 struct crypto_hash_ctx hash_ctx; member
32 return container_of(ctx, struct sm3_hash_ctx, hash_ctx); in to_hash_ctx()
108 hc->hash_ctx.ops = &sm3_hash_ops; in crypto_sm3_alloc_ctx()
110 *ctx = &hc->hash_ctx; in crypto_sm3_alloc_ctx()
/optee_os-3.20.0/core/drivers/crypto/caam/hash/
A Dcaam_hash.c248 struct hashctx *hash_ctx = NULL; in caam_hash_allocate() local
264 hash_ctx = caam_calloc(sizeof(*hash_ctx)); in caam_hash_allocate()
265 if (!hash_ctx) { in caam_hash_allocate()
270 hash_ctx->alg = alg; in caam_hash_allocate()
271 hash->hash_ctx.ops = &hash_ops; in caam_hash_allocate()
272 hash->ctx = hash_ctx; in caam_hash_allocate()
274 *ctx = &hash->hash_ctx; in caam_hash_allocate()
276 ret = caam_hash_hmac_allocate(hash_ctx); in caam_hash_allocate()
280 HASH_TRACE("Allocated Context (%p)", hash_ctx); in caam_hash_allocate()
287 if (hash_ctx) in caam_hash_allocate()
[all …]
/optee_os-3.20.0/core/kernel/
A Dree_fs_ta.c65 void *hash_ctx; member
241 void *hash_ctx = NULL; in ree_fs_ta_open() local
364 res = crypto_hash_alloc_ctx(&hash_ctx, in ree_fs_ta_open()
368 res = crypto_hash_init(hash_ctx); in ree_fs_ta_open()
405 res = crypto_hash_update(hash_ctx, (uint8_t *)bs_hdr, in ree_fs_ta_open()
454 res = crypto_hash_update(hash_ctx, (uint8_t *)ehdr, ehdr_sz); in ree_fs_ta_open()
475 handle->hash_ctx = hash_ctx; in ree_fs_ta_open()
484 crypto_hash_free_ctx(hash_ctx); in ree_fs_ta_open()
583 res = crypto_hash_update(handle->hash_ctx, b, in ree_fs_ta_read()
599 res = crypto_hash_update(handle->hash_ctx, dst, len); in ree_fs_ta_read()
[all …]
/optee_os-3.20.0/lib/libmbedtls/core/
A Dhash.c26 struct crypto_hash_ctx hash_ctx; member
36 return container_of(ctx, struct mbed_hash_ctx, hash_ctx); in to_hash_ctx()
124 hc->hash_ctx.ops = &mbed_hash_ops; in mbed_hash_alloc_ctx()
133 *ctx_ret = &hc->hash_ctx; in mbed_hash_alloc_ctx()

Completed in 8 milliseconds