Home
last modified time | relevance | path

Searched refs:crypto_hash_update (Results 1 – 21 of 21) sorted by relevance

/optee_os/lib/libmbedtls/core/
H A Dsm2-kep.c57 res = crypto_hash_update(ctx, ENTLEN, sizeof(ENTLEN)); in sm2_kep_compute_Z()
61 res = crypto_hash_update(ctx, id, idlen); in sm2_kep_compute_Z()
70 res = crypto_hash_update(ctx, buf, sizeof(buf)); in sm2_kep_compute_Z()
79 res = crypto_hash_update(ctx, buf, sizeof(buf)); in sm2_kep_compute_Z()
88 res = crypto_hash_update(ctx, buf, sizeof(buf)); in sm2_kep_compute_Z()
97 res = crypto_hash_update(ctx, buf, sizeof(buf)); in sm2_kep_compute_Z()
106 res = crypto_hash_update(ctx, buf, sizeof(buf)); in sm2_kep_compute_Z()
115 res = crypto_hash_update(ctx, buf, sizeof(buf)); in sm2_kep_compute_Z()
164 res = crypto_hash_update(ctx, buf, sizeof(buf)); in sm2_kep_compute_S()
169 res = crypto_hash_update(ctx, ZAZB, ZAZB_len); in sm2_kep_compute_S()
[all …]
H A Dsm2-pke.c234 res = crypto_hash_update(ctx, x2y2, SM2_INT_SIZE_BYTES); in sm2_mbedtls_pke_decrypt()
237 res = crypto_hash_update(ctx, dst, out_len); in sm2_mbedtls_pke_decrypt()
241 res = crypto_hash_update(ctx, eom, C2_len - out_len); in sm2_mbedtls_pke_decrypt()
245 res = crypto_hash_update(ctx, x2y2 + SM2_INT_SIZE_BYTES, in sm2_mbedtls_pke_decrypt()
428 res = crypto_hash_update(ctx, x2y2, SM2_INT_SIZE_BYTES); in sm2_mbedtls_pke_encrypt()
431 res = crypto_hash_update(ctx, src, src_len); in sm2_mbedtls_pke_encrypt()
434 res = crypto_hash_update(ctx, x2y2 + SM2_INT_SIZE_BYTES, in sm2_mbedtls_pke_encrypt()
/optee_os/core/lib/libtomcrypt/
H A Dsm2-kep.c51 res = crypto_hash_update(ctx, ENTLEN, sizeof(ENTLEN)); in sm2_kep_compute_Z()
55 res = crypto_hash_update(ctx, id, idlen); in sm2_kep_compute_Z()
60 res = crypto_hash_update(ctx, buf, sizeof(buf)); in sm2_kep_compute_Z()
65 res = crypto_hash_update(ctx, buf, sizeof(buf)); in sm2_kep_compute_Z()
70 res = crypto_hash_update(ctx, buf, sizeof(buf)); in sm2_kep_compute_Z()
75 res = crypto_hash_update(ctx, buf, sizeof(buf)); in sm2_kep_compute_Z()
80 res = crypto_hash_update(ctx, buf, sizeof(buf)); in sm2_kep_compute_Z()
85 res = crypto_hash_update(ctx, buf, sizeof(buf)); in sm2_kep_compute_Z()
128 res = crypto_hash_update(ctx, buf, sizeof(buf)); in sm2_kep_compute_S()
133 res = crypto_hash_update(ctx, ZAZB, ZAZB_len); in sm2_kep_compute_S()
[all …]
H A Dsm2-pke.c267 res = crypto_hash_update(ctx, x2y2, SM2_INT_SIZE_BYTES); in sm2_ltc_pke_decrypt()
270 res = crypto_hash_update(ctx, dst, out_len); in sm2_ltc_pke_decrypt()
274 res = crypto_hash_update(ctx, eom, C2_len - out_len); in sm2_ltc_pke_decrypt()
278 res = crypto_hash_update(ctx, x2y2 + SM2_INT_SIZE_BYTES, in sm2_ltc_pke_decrypt()
491 res = crypto_hash_update(ctx, x2y2, SM2_INT_SIZE_BYTES); in sm2_ltc_pke_encrypt()
494 res = crypto_hash_update(ctx, src, src_len); in sm2_ltc_pke_encrypt()
497 res = crypto_hash_update(ctx, x2y2 + SM2_INT_SIZE_BYTES, in sm2_ltc_pke_encrypt()
/optee_os/core/drivers/crypto/crypto_api/acipher/
H A Drsamgf.c56 ret = crypto_hash_update(ctx, mgf_data->seed.data, in drvcrypt_rsa_mgf1()
61 ret = crypto_hash_update(ctx, (uint8_t *)&swapcount, in drvcrypt_rsa_mgf1()
80 ret = crypto_hash_update(ctx, mgf_data->seed.data, in drvcrypt_rsa_mgf1()
85 ret = crypto_hash_update(ctx, (uint8_t *)&swapcount, in drvcrypt_rsa_mgf1()
/optee_os/core/tee/
H A Dtee_cryp_concat_kdf.c43 res = crypto_hash_update(ctx, (uint8_t *)&be_count, in tee_cryp_concat_kdf()
47 res = crypto_hash_update(ctx, shared_secret, shared_secret_len); in tee_cryp_concat_kdf()
51 res = crypto_hash_update(ctx, other_info, in tee_cryp_concat_kdf()
H A Dtee_cryp_utl.c47 res = crypto_hash_update(ctx, data, datalen); in tee_hash_createdigest()
H A Dfs_htree.c415 res = crypto_hash_update(ctx, ndata, nsize); in calc_node_hash()
420 res = crypto_hash_update(ctx, (void *)meta, sizeof(*meta)); in calc_node_hash()
426 res = crypto_hash_update(ctx, node->child[0]->node.hash, in calc_node_hash()
433 res = crypto_hash_update(ctx, node->child[1]->node.hash, in calc_node_hash()
H A Dtee_svc_cryp.c3049 res = crypto_hash_update(cs->ctx, chunk, chunk_size); in syscall_hash_update()
3121 res = crypto_hash_update(cs->ctx, chunk, in syscall_hash_final()
3148 res = crypto_hash_update(cs->ctx, chunk, chunk_size); in syscall_hash_final()
/optee_os/core/crypto/
H A Dsm2-kdf.c46 res = crypto_hash_update(ctx, Z, Z_len); in sm2_kdf()
49 res = crypto_hash_update(ctx, (const uint8_t *)&be_count, in sm2_kdf()
H A Dsigned_hdr.c230 crypto_hash_update(ctx, my_uuid, sizeof(TEE_UUID)) || in calc_next_uuid()
231 crypto_hash_update(ctx, (const void *)tmp->name_str, in calc_next_uuid()
295 crypto_hash_update(ctx, (const void *)shdr, sizeof(*shdr)) || in shdr_load_pub_key()
296 crypto_hash_update(ctx, (const void *)subkey, shdr->img_size) || in shdr_load_pub_key()
H A Drng_fortuna.c88 return crypto_hash_update(ctx, data, dlen); in hash_update()
H A Dcrypto.c104 TEE_Result crypto_hash_update(void *ctx, const uint8_t *data, size_t len) in crypto_hash_update() function
/optee_os/core/pta/
H A Dsecstor_ta_mgmt.c76 res = crypto_hash_update(hash_ctx, (uint8_t *)shdr, sizeof(*shdr)); in install_ta()
88 res = crypto_hash_update(hash_ctx, (uint8_t *)&bs_ta, sizeof(bs_ta)); in install_ta()
109 res = crypto_hash_update(hash_ctx, buf, l); in install_ta()
H A Dattestation.c444 res = crypto_hash_update(ctx, nonce, nonce_sz); in digest_nonce_and_hash()
447 res = crypto_hash_update(ctx, hash, TEE_SHA256_HASH_SIZE); in digest_nonce_and_hash()
566 res = crypto_hash_update(ctx, (uint8_t *)r->va, r->size); in hash_regions()
716 res = crypto_hash_update(ctx, __text_start, in cmd_hash_tee_memory()
720 res = crypto_hash_update(ctx, __text_data_end, in cmd_hash_tee_memory()
723 res = crypto_hash_update(ctx, __text_init_start, in cmd_hash_tee_memory()
727 res = crypto_hash_update(ctx, __text_pageable_start, in cmd_hash_tee_memory()
735 res = crypto_hash_update(ctx, __rodata_start, in cmd_hash_tee_memory()
740 res = crypto_hash_update(ctx, __rodata_init_start, in cmd_hash_tee_memory()
745 res = crypto_hash_update(ctx, __rodata_pageable_start, in cmd_hash_tee_memory()
/optee_os/core/drivers/
H A Dzynqmp_huk.c77 res = crypto_hash_update(ctx, device_dna, device_dna_size); in tee_zynqmp_generate_huk_src()
92 res = crypto_hash_update(ctx, (uint8_t *)&user_efuse, in tee_zynqmp_generate_huk_src()
/optee_os/core/pta/veraison_attestation/
H A Dhash.c91 res = crypto_hash_update(ctx, (uint8_t *)r->va, r->size); in hash_regions()
H A Dsign.c74 res = crypto_hash_update(ctx, msg, msg_len); in hash_sha256()
/optee_os/core/kernel/
H A Dree_fs_ta.c379 res = crypto_hash_update(hash_ctx, (uint8_t *)shdr, sizeof(*shdr)); in ree_fs_ta_open()
413 res = crypto_hash_update(hash_ctx, (uint8_t *)bs_hdr, in ree_fs_ta_open()
462 res = crypto_hash_update(hash_ctx, (uint8_t *)ehdr, ehdr_sz); in ree_fs_ta_open()
600 res = crypto_hash_update(handle->hash_ctx, dst, n); in ree_fs_ta_read()
H A Dembedded_ts.c113 res = crypto_hash_update(ctx, h->ts->ts, h->ts->size); in emb_ts_get_tag()
/optee_os/core/include/crypto/
H A Dcrypto.h33 TEE_Result crypto_hash_update(void *ctx, const uint8_t *data, size_t len);