Searched refs:hc (Results 1 – 5 of 5) sorted by relevance
/optee_os-3.20.0/core/crypto/ |
A D | sm3-hash.c | 54 struct sm3_hash_ctx *hc = to_hash_ctx(ctx); in op_sm3_hash_final() local 67 sm3_final(&hc->sm3_ctx, tmp_digest); in op_sm3_hash_final() 77 struct sm3_hash_ctx *hc = to_hash_ctx(ctx); in op_sm3_hash_free_ctx() local 79 memzero_explicit(&hc->sm3_ctx, sizeof(hc->sm3_ctx)); in op_sm3_hash_free_ctx() 80 free(hc); in op_sm3_hash_free_ctx() 102 struct sm3_hash_ctx *hc = NULL; in crypto_sm3_alloc_ctx() local 104 hc = calloc(1, sizeof(*hc)); in crypto_sm3_alloc_ctx() 105 if (!hc) in crypto_sm3_alloc_ctx() 108 hc->hash_ctx.ops = &sm3_hash_ops; in crypto_sm3_alloc_ctx() 110 *ctx = &hc->hash_ctx; in crypto_sm3_alloc_ctx()
|
/optee_os-3.20.0/lib/libmbedtls/core/ |
A D | hash.c | 59 struct mbed_hash_ctx *hc = to_hash_ctx(ctx); in mbed_hash_final() local 75 if (mbedtls_md_finish(&hc->md_ctx, tmp_digest)) in mbed_hash_final() 86 struct mbed_hash_ctx *hc = to_hash_ctx(ctx); in mbed_hash_free_ctx() local 88 mbedtls_md_free(&hc->md_ctx); in mbed_hash_free_ctx() 89 free(hc); in mbed_hash_free_ctx() 114 struct mbed_hash_ctx *hc = NULL; in mbed_hash_alloc_ctx() local 120 hc = calloc(1, sizeof(*hc)); in mbed_hash_alloc_ctx() 121 if (!hc) in mbed_hash_alloc_ctx() 124 hc->hash_ctx.ops = &mbed_hash_ops; in mbed_hash_alloc_ctx() 127 free(hc); in mbed_hash_alloc_ctx() [all …]
|
/optee_os-3.20.0/core/lib/libtomcrypt/ |
A D | hash.c | 38 struct ltc_hash_ctx *hc = to_hash_ctx(ctx); in ltc_hash_init() local 40 if (hc->descr->init(&hc->state) == CRYPT_OK) in ltc_hash_init() 49 struct ltc_hash_ctx *hc = to_hash_ctx(ctx); in ltc_hash_update() local 51 if (hc->descr->process(&hc->state, data, len) == CRYPT_OK) in ltc_hash_update() 60 struct ltc_hash_ctx *hc = to_hash_ctx(ctx); in ltc_hash_final() local 61 size_t hash_size = hc->descr->hashsize; in ltc_hash_final() 76 if (hc->descr->done(&hc->state, tmp_digest) == CRYPT_OK) { in ltc_hash_final()
|
A D | cmac.c | 35 struct ltc_omac_ctx *hc = to_omac_ctx(ctx); in ltc_omac_init() local 37 if (omac_init(&hc->state, hc->cipher_idx, key, len) == CRYPT_OK) in ltc_omac_init()
|
A D | hmac.c | 34 struct ltc_hmac_ctx *hc = to_hmac_ctx(ctx); in ltc_hmac_init() local 36 if (hmac_init(&hc->state, hc->hash_idx, key, len) == CRYPT_OK) in ltc_hmac_init()
|
Completed in 6 milliseconds