Home
last modified time | relevance | path

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

/optee_os/core/crypto/
H A Dsm3-hmac.c27 static struct sm3_hmac_ctx *to_hmac_ctx(struct crypto_mac_ctx *ctx) in to_hmac_ctx() function
37 sm3_hmac_init(&to_hmac_ctx(ctx)->sm3_ctx, key, len); in op_sm3_hmac_init()
45 sm3_hmac_update(&to_hmac_ctx(ctx)->sm3_ctx, data, len); in op_sm3_hmac_update()
53 struct sm3_hmac_ctx *c = to_hmac_ctx(ctx); in op_sm3_hmac_final()
76 struct sm3_hmac_ctx *c = to_hmac_ctx(ctx); in op_sm3_hmac_free_ctx()
85 struct sm3_hmac_ctx *src = to_hmac_ctx(src_ctx); in op_sm3_hmac_copy_state()
86 struct sm3_hmac_ctx *dst = to_hmac_ctx(dst_ctx); in op_sm3_hmac_copy_state()
/optee_os/core/lib/libtomcrypt/
H A Dhmac.c24 static struct ltc_hmac_ctx *to_hmac_ctx(struct crypto_mac_ctx *ctx) in to_hmac_ctx() function
34 struct ltc_hmac_ctx *hc = to_hmac_ctx(ctx); in ltc_hmac_init()
45 if (hmac_process(&to_hmac_ctx(ctx)->state, data, len) == CRYPT_OK) in ltc_hmac_update()
56 if (hmac_done(&to_hmac_ctx(ctx)->state, digest, &l) == CRYPT_OK) in ltc_hmac_final()
64 free(to_hmac_ctx(ctx)); in ltc_hmac_free_ctx()
70 struct ltc_hmac_ctx *src = to_hmac_ctx(src_ctx); in ltc_hmac_copy_state()
71 struct ltc_hmac_ctx *dst = to_hmac_ctx(dst_ctx); in ltc_hmac_copy_state()
/optee_os/lib/libmbedtls/core/
H A Dhmac.c26 static struct mbed_hmac_ctx *to_hmac_ctx(struct crypto_mac_ctx *ctx) in to_hmac_ctx() function
36 if (mbedtls_md_hmac_starts(&to_hmac_ctx(ctx)->md_ctx, key, len)) in mbed_hmac_init()
45 if (mbedtls_md_hmac_update(&to_hmac_ctx(ctx)->md_ctx, data, len)) in mbed_hmac_update()
54 struct mbed_hmac_ctx *c = to_hmac_ctx(ctx); in mbed_hmac_final()
82 struct mbed_hmac_ctx *c = to_hmac_ctx(ctx); in mbed_hmac_free_ctx()
91 struct mbed_hmac_ctx *src = to_hmac_ctx(src_ctx); in mbed_hmac_copy_state()
92 struct mbed_hmac_ctx *dst = to_hmac_ctx(dst_ctx); in mbed_hmac_copy_state()
/optee_os/core/drivers/crypto/hisilicon/
H A Dsec_hmac.c13 static struct crypto_hmac *to_hmac_ctx(struct crypto_mac_ctx *ctx) in to_hmac_ctx() function
29 hash = to_hmac_ctx(ctx); in sec_hmac_initialize()
51 hash = to_hmac_ctx(ctx); in sec_hmac_do_update()
60 struct crypto_hmac *hash = to_hmac_ctx(ctx); in sec_hmac_do_final()
74 hash = to_hmac_ctx(ctx); in sec_hmac_ctx_free()
100 out_hash = to_hmac_ctx(out_ctx); in sec_hmac_copy_state()
101 in_hash = to_hmac_ctx(in_ctx); in sec_hmac_copy_state()