Home
last modified time | relevance | path

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

/optee_os-3.20.0/core/crypto/
A Dsm3-hash.c28 static struct sm3_hash_ctx *to_hash_ctx(struct crypto_hash_ctx *ctx) in to_hash_ctx() function
37 sm3_init(&to_hash_ctx(ctx)->sm3_ctx); in op_sm3_hash_init()
45 sm3_update(&to_hash_ctx(ctx)->sm3_ctx, data, len); in op_sm3_hash_update()
54 struct sm3_hash_ctx *hc = to_hash_ctx(ctx); in op_sm3_hash_final()
77 struct sm3_hash_ctx *hc = to_hash_ctx(ctx); in op_sm3_hash_free_ctx()
86 struct sm3_hash_ctx *src = to_hash_ctx(src_ctx); in op_sm3_hash_copy_state()
87 struct sm3_hash_ctx *dst = to_hash_ctx(dst_ctx); in op_sm3_hash_copy_state()
/optee_os-3.20.0/core/lib/libtomcrypt/
A Dhash.c29 static struct ltc_hash_ctx *to_hash_ctx(struct crypto_hash_ctx *ctx) in to_hash_ctx() function
38 struct ltc_hash_ctx *hc = to_hash_ctx(ctx); in ltc_hash_init()
49 struct ltc_hash_ctx *hc = to_hash_ctx(ctx); in ltc_hash_update()
60 struct ltc_hash_ctx *hc = to_hash_ctx(ctx); in ltc_hash_final()
88 free(to_hash_ctx(ctx)); in ltc_hash_free_ctx()
94 struct ltc_hash_ctx *src = to_hash_ctx(src_ctx); in ltc_hash_copy_state()
95 struct ltc_hash_ctx *dst = to_hash_ctx(dst_ctx); in ltc_hash_copy_state()
/optee_os-3.20.0/lib/libmbedtls/core/
A Dhash.c32 static struct mbed_hash_ctx *to_hash_ctx(struct crypto_hash_ctx *ctx) in to_hash_ctx() function
41 if (mbedtls_md_starts(&to_hash_ctx(ctx)->md_ctx)) in mbed_hash_init()
50 if (mbedtls_md_update(&to_hash_ctx(ctx)->md_ctx, data, len)) in mbed_hash_update()
59 struct mbed_hash_ctx *hc = to_hash_ctx(ctx); in mbed_hash_final()
86 struct mbed_hash_ctx *hc = to_hash_ctx(ctx); in mbed_hash_free_ctx()
95 struct mbed_hash_ctx *src = to_hash_ctx(src_ctx); in mbed_hash_copy_state()
96 struct mbed_hash_ctx *dst = to_hash_ctx(dst_ctx); in mbed_hash_copy_state()
/optee_os-3.20.0/core/drivers/crypto/caam/hash/
A Dcaam_hash.c105 static struct crypto_hash *to_hash_ctx(struct crypto_hash_ctx *ctx) in to_hash_ctx() function
159 struct crypto_hash *hash = to_hash_ctx(ctx); in do_hash_init()
175 struct crypto_hash *hash = to_hash_ctx(ctx); in do_hash_update()
191 struct crypto_hash *hash = to_hash_ctx(ctx); in do_hash_final()
204 struct crypto_hash *hash = to_hash_ctx(ctx); in do_hash_free()
221 struct crypto_hash *hash_src = to_hash_ctx(src_ctx); in do_hash_copy_state()
222 struct crypto_hash *hash_dst = to_hash_ctx(dst_ctx); in do_hash_copy_state()

Completed in 5 milliseconds