Home
last modified time | relevance | path

Searched refs:sm3_ctx (Results 1 – 2 of 2) sorted by relevance

/optee_os-3.20.0/core/crypto/
A Dsm3-hash.c23 struct sm3_context sm3_ctx; member
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()
67 sm3_final(&hc->sm3_ctx, tmp_digest); in op_sm3_hash_final()
79 memzero_explicit(&hc->sm3_ctx, sizeof(hc->sm3_ctx)); in op_sm3_hash_free_ctx()
89 dst->sm3_ctx = src->sm3_ctx; in op_sm3_hash_copy_state()
A Dsm3-hmac.c23 struct sm3_context sm3_ctx; member
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()
67 sm3_hmac_final(&c->sm3_ctx, tmp_digest); in op_sm3_hmac_final()
79 memzero_explicit(&c->sm3_ctx, sizeof(c->sm3_ctx)); in op_sm3_hmac_free_ctx()
89 dst->sm3_ctx = src->sm3_ctx; in op_sm3_hmac_copy_state()

Completed in 2 milliseconds