Home
last modified time | relevance | path

Searched refs:TEE_SHA256_HASH_SIZE (Results 1 – 25 of 25) sorted by relevance

/optee_os/core/pta/veraison_attestation/
H A Dveraison_attestation.c20 #define TEE_SHA256_HASH_SIZE 32 macro
63 uint8_t measurement_value[TEE_SHA256_HASH_SIZE] = { 0 }; in cmd_get_cbor_evidence()
64 size_t b64_measurement_value_len = TEE_SHA256_HASH_SIZE * 2; in cmd_get_cbor_evidence()
65 char b64_measurement_value[TEE_SHA256_HASH_SIZE * 2] = { 0 }; in cmd_get_cbor_evidence()
88 if (!base64_enc(measurement_value, TEE_SHA256_HASH_SIZE, in cmd_get_cbor_evidence()
110 TEE_SHA256_HASH_SIZE); in cmd_get_cbor_evidence()
H A Dsign.c77 res = crypto_hash_final(ctx, hash, TEE_SHA256_HASH_SIZE); in hash_sha256()
169 uint8_t hash_msg[TEE_SHA256_HASH_SIZE] = { }; in sign_ecdsa_sha256()
183 TEE_SHA256_HASH_SIZE, sig, sig_len); in sign_ecdsa_sha256()
189 TEE_SHA256_HASH_SIZE, sig, *sig_len); in sign_ecdsa_sha256()
H A Dhash.c46 uint8_t hash[TEE_SHA256_HASH_SIZE]) in hash_regions() argument
96 res = crypto_hash_final(ctx, hash, TEE_SHA256_HASH_SIZE); in hash_regions()
103 TEE_Result get_hash_ta_memory(uint8_t out[TEE_SHA256_HASH_SIZE]) in get_hash_ta_memory() argument
H A Dhash.h13 TEE_Result get_hash_ta_memory(uint8_t out[TEE_SHA256_HASH_SIZE]);
/optee_os/core/include/tee/
H A Dtee_fs_key_manager.h15 #define TEE_FS_KM_SSK_SIZE TEE_SHA256_HASH_SIZE
16 #define TEE_FS_KM_TSK_SIZE TEE_SHA256_HASH_SIZE
H A Dtee_ta_enc_manager.h13 #define TEE_TA_ENC_KEY_SIZE TEE_SHA256_HASH_SIZE
H A Dfs_htree.h23 #define TEE_FS_HTREE_HASH_SIZE TEE_SHA256_HASH_SIZE
/optee_os/core/pta/
H A Dattestation.c71 TEE_SHA256_HASH_SIZE); in generate_key()
418 COMPILE_TIME_ASSERT(FILE_TAG_SIZE == TEE_SHA256_HASH_SIZE); in hash_binary()
425 DHEXDUMP(hash, TEE_SHA256_HASH_SIZE); in hash_binary()
447 res = crypto_hash_update(ctx, hash, TEE_SHA256_HASH_SIZE); in digest_nonce_and_hash()
450 res = crypto_hash_final(ctx, digest, TEE_SHA256_HASH_SIZE); in digest_nonce_and_hash()
461 TEE_SHA256_HASH_SIZE, /* salt len */ in sign_digest()
462 digest, TEE_SHA256_HASH_SIZE, in sign_digest()
475 uint8_t digest[TEE_SHA256_HASH_SIZE] = { }; in sign_buffer()
481 return sign_digest(buf + TEE_SHA256_HASH_SIZE, in sign_buffer()
482 buf_sz - TEE_SHA256_HASH_SIZE, digest); in sign_buffer()
[all …]
/optee_os/core/kernel/
H A Dembedded_ts.c101 if (!tag || *tag_len < TEE_SHA256_HASH_SIZE) { in emb_ts_get_tag()
102 *tag_len = TEE_SHA256_HASH_SIZE; in emb_ts_get_tag()
105 *tag_len = TEE_SHA256_HASH_SIZE; in emb_ts_get_tag()
/optee_os/core/include/kernel/
H A Dhuk_subkey.h38 #define HUK_SUBKEY_MAX_LEN TEE_SHA256_HASH_SIZE
/optee_os/core/include/mm/
H A Dfile.h14 #define FILE_TAG_SIZE TEE_SHA256_HASH_SIZE
/optee_os/core/arch/arm/plat-synquacer/
H A Drng_pta.c185 uint8_t entropy_sha512_256[TEE_SHA256_HASH_SIZE]; in pool_check_add_entropy()
216 TEE_SHA256_HASH_SIZE); in pool_check_add_entropy()
/optee_os/lib/libutee/include/
H A Dutee_defines.h193 TEE_SHA256_HASH_SIZE = 32, enumerator
231 return TEE_SHA256_HASH_SIZE; in __tee_alg_get_digest_size()
/optee_os/core/drivers/crypto/caam/hash/
H A Dcaam_hash.c55 .size_ctx = HASH_MSG_LEN + TEE_SHA256_HASH_SIZE,
61 .size_digest = TEE_SHA256_HASH_SIZE,
63 .size_ctx = HASH_MSG_LEN + TEE_SHA256_HASH_SIZE,
/optee_os/lib/libmbedtls/core/
H A Dhash.c186 uint8_t digest[TEE_SHA256_HASH_SIZE] = { 0 }; in hash_sha256_check()
/optee_os/core/lib/libtomcrypt/
H A Dhash.c176 uint8_t digest[TEE_SHA256_HASH_SIZE]; in hash_sha256_check()
/optee_os/ta/remoteproc/src/
H A Dremoteproc_core.c119 uint8_t hash[TEE_SHA256_HASH_SIZE];
205 .hash_len = TEE_SHA256_HASH_SIZE,
210 .hash_len = TEE_SHA256_HASH_SIZE,
752 params[3].memref.size = TEE_SHA256_HASH_SIZE; in remoteproc_load_segment()
/optee_os/core/tee/
H A Dtee_fs_key_manager.c210 uint8_t sha[TEE_SHA256_HASH_SIZE]; in essiv()
/optee_os/core/pta/stm32mp/
H A Dremoteproc_pta.c90 if (!hash || params[3].memref.size != TEE_SHA256_HASH_SIZE) in rproc_pta_load_segment()
/optee_os/core/arch/arm/kernel/
H A Dboot.c485 TEE_SHA256_HASH_SIZE; in init_pager_runtime()
545 const uint8_t *hash = hashes + n * TEE_SHA256_HASH_SIZE; in init_pager_runtime()
/optee_os/ta/pkcs11/src/
H A Dprocessing_symm.c524 sign_sz = TEE_SHA256_HASH_SIZE; in input_hmac_len_is_valid()
703 sign_sz = TEE_SHA256_HASH_SIZE; in input_sign_size_is_valid()
/optee_os/core/drivers/imx/dcp/
H A Ddcp.c53 .size = TEE_SHA256_HASH_SIZE,
/optee_os/core/drivers/crypto/se050/core/
H A Decc.c180 { kAlgorithm_SSS_ECDSA_SHA256, TEE_SHA256_HASH_SIZE }, in ecc_prepare_msg()
/optee_os/core/mm/
H A Dfobj.c473 const uint8_t *hash = rop->hashes + page_idx * TEE_SHA256_HASH_SIZE; in rop_load_page_helper()
/optee_os/core/drivers/crypto/caam/acipher/
H A Dcaam_prime_dsa.c682 struct dsa_hash hash_func = { OP_ALGO(SHA256), TEE_SHA256_HASH_SIZE }; in caam_prime_dsa_gen()