Searched refs:to_hash_ctx (Results 1 – 5 of 5) sorted by relevance
28 static struct sm3_hash_ctx *to_hash_ctx(struct crypto_hash_ctx *ctx) in to_hash_ctx() function37 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()
32 static struct mbed_hash_ctx *to_hash_ctx(struct crypto_hash_ctx *ctx) in to_hash_ctx() function41 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()87 struct mbed_hash_ctx *hc = to_hash_ctx(ctx); in mbed_hash_free_ctx()96 struct mbed_hash_ctx *src = to_hash_ctx(src_ctx); in mbed_hash_copy_state()97 struct mbed_hash_ctx *dst = to_hash_ctx(dst_ctx); in mbed_hash_copy_state()
29 static struct ltc_hash_ctx *to_hash_ctx(struct crypto_hash_ctx *ctx) in to_hash_ctx() function38 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()
60 static struct crypto_hash *to_hash_ctx(struct crypto_hash_ctx *ctx) in to_hash_ctx() function312 hash = to_hash_ctx(ctx); in sec_hash_initialize()386 hash = to_hash_ctx(ctx); in sec_hash_do_update()422 struct crypto_hash *hash = to_hash_ctx(ctx); in sec_hash_do_final()448 hash = to_hash_ctx(ctx); in sec_hash_ctx_free()497 out_hash = to_hash_ctx(out_ctx); in sec_hash_copy_state()498 in_hash = to_hash_ctx(in_ctx); in sec_hash_copy_state()
105 static struct crypto_hash *to_hash_ctx(struct crypto_hash_ctx *ctx) in to_hash_ctx() function159 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()