Home
last modified time | relevance | path

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

/optee_os-3.20.0/core/crypto/
A Dsm3-hmac.c28 static struct sm3_hmac_ctx *to_hmac_ctx(struct crypto_mac_ctx *ctx) in to_hmac_ctx() function
38 sm3_hmac_init(&to_hmac_ctx(ctx)->sm3_ctx, key, len); in op_sm3_hmac_init()
46 sm3_hmac_update(&to_hmac_ctx(ctx)->sm3_ctx, data, len); in op_sm3_hmac_update()
54 struct sm3_hmac_ctx *c = to_hmac_ctx(ctx); in op_sm3_hmac_final()
77 struct sm3_hmac_ctx *c = to_hmac_ctx(ctx); in op_sm3_hmac_free_ctx()
86 struct sm3_hmac_ctx *src = to_hmac_ctx(src_ctx); in op_sm3_hmac_copy_state()
87 struct sm3_hmac_ctx *dst = to_hmac_ctx(dst_ctx); in op_sm3_hmac_copy_state()
/optee_os-3.20.0/core/lib/libtomcrypt/
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-3.20.0/lib/libmbedtls/core/
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()
81 struct mbed_hmac_ctx *c = to_hmac_ctx(ctx); in mbed_hmac_free_ctx()
90 struct mbed_hmac_ctx *src = to_hmac_ctx(src_ctx); in mbed_hmac_copy_state()
91 struct mbed_hmac_ctx *dst = to_hmac_ctx(dst_ctx); in mbed_hmac_copy_state()

Completed in 3 milliseconds