Home
last modified time | relevance | path

Searched refs:hash_algo (Results 1 – 12 of 12) sorted by relevance

/optee_os-3.20.0/core/tee/
A Dtee_cryp_concat_kdf.c25 uint32_t hash_algo = TEE_ALG_HASH_ALGO(hash_id); in tee_cryp_concat_kdf() local
27 res = crypto_hash_alloc_ctx(&ctx, hash_algo); in tee_cryp_concat_kdf()
31 res = tee_alg_get_digest_size(hash_algo, &hash_len); in tee_cryp_concat_kdf()
A Dtee_cryp_hkdf.c22 uint32_t hash_algo = TEE_ALG_HASH_ALGO(hash_id); in hkdf_extract() local
32 res = tee_alg_get_digest_size(hash_algo, &salt_len); in hkdf_extract()
59 res = tee_alg_get_digest_size(hash_algo, prk_len); in hkdf_extract()
73 uint32_t hash_algo = TEE_ALG_HASH_ALGO(hash_id); in hkdf_expand() local
76 res = tee_alg_get_digest_size(hash_algo, &hash_len); in hkdf_expand()
A Dtee_svc_cryp.c4219 uint32_t hash_algo = 0; in syscall_asymm_verify() local
4268 hash_algo = TEE_DIGEST_HASH_TO_ALGO(cs->algo); in syscall_asymm_verify()
4269 res = tee_alg_get_digest_size(hash_algo, &hash_size); in syscall_asymm_verify()
4285 hash_algo = TEE_DIGEST_HASH_TO_ALGO(cs->algo); in syscall_asymm_verify()
4286 res = tee_alg_get_digest_size(hash_algo, &hash_size); in syscall_asymm_verify()
/optee_os-3.20.0/core/crypto/
A Dsigned_hdr.c66 size_t hash_algo = 0; in shdr_verify_signature() local
74 hash_algo = TEE_DIGEST_HASH_TO_ALGO(shdr->algo); in shdr_verify_signature()
75 if (is_weak_hash_algo(hash_algo)) in shdr_verify_signature()
78 res = tee_alg_get_digest_size(hash_algo, &hash_size); in shdr_verify_signature()
352 size_t hash_algo = 0; in shdr_verify_signature2() local
360 hash_algo = TEE_DIGEST_HASH_TO_ALGO(shdr->algo); in shdr_verify_signature2()
361 if (is_weak_hash_algo(hash_algo)) in shdr_verify_signature2()
364 if (tee_alg_get_digest_size(hash_algo, &hash_size) || in shdr_verify_signature2()
/optee_os-3.20.0/core/drivers/crypto/crypto_api/include/
A Ddrvcrypt_acipher.h37 uint32_t hash_algo; /* HASH Algorithm */ member
48 uint32_t hash_algo; /* HASH Algorithm */ member
65 uint32_t hash_algo; /* HASH Algorithm */ member
/optee_os-3.20.0/core/drivers/crypto/crypto_api/acipher/
A Drsassa.c40 hash_oid = drvcrypt_get_alg_hash_oid(ssa_data->hash_algo); in emsa_pkcs1_v1_5_encode()
219 rsa_data.hash_algo = ssa_data->hash_algo; in rsassa_pkcs1_v1_5_sign()
274 rsa_data.hash_algo = ssa_data->hash_algo; in rsassa_pkcs1_v1_5_verify()
406 ret = tee_hash_createdigest(ssa_data->hash_algo, msg_db, msg_size, in emsa_pss_encode()
444 mgf_data.hash_algo = ssa_data->hash_algo; in emsa_pss_encode()
587 mgf_data.hash_algo = ssa_data->hash_algo; in emsa_pss_verify()
695 ret = tee_hash_createdigest(ssa_data->hash_algo, msg_db, msg_size, in emsa_pss_verify()
A Drsa.c227 rsa_data.hash_algo = TEE_INTERNAL_HASH_TO_ALGO(algo); in crypto_acipher_rsaes_decrypt()
229 ret = tee_alg_get_digest_size(rsa_data.hash_algo, in crypto_acipher_rsaes_decrypt()
310 rsa_data.hash_algo = TEE_INTERNAL_HASH_TO_ALGO(algo); in crypto_acipher_rsaes_encrypt()
313 ret = tee_alg_get_digest_size(rsa_data.hash_algo, in crypto_acipher_rsaes_encrypt()
363 rsa_ssa.hash_algo = TEE_DIGEST_HASH_TO_ALGO(algo); in crypto_acipher_rsassa_sign()
377 rsa_ssa.hash_algo = 0; in crypto_acipher_rsassa_sign()
445 rsa_ssa.hash_algo = TEE_DIGEST_HASH_TO_ALGO(algo); in crypto_acipher_rsassa_verify()
460 rsa_ssa.hash_algo = 0; in crypto_acipher_rsassa_verify()
A Drsamgf.c38 ret = crypto_hash_alloc_ctx(&ctx, mgf_data->hash_algo); in drvcrypt_rsa_mgf1()
/optee_os-3.20.0/ta/pkcs11/src/
A Dprocessing_asymm.c218 uint32_t hash_algo = 0; in allocate_tee_operation() local
227 if (pkcs2tee_algorithm(&algo, &hash_algo, function, params, obj)) in allocate_tee_operation()
232 if (hash_algo) { in allocate_tee_operation()
236 hash_algo, hash_mode, 0); in allocate_tee_operation()
239 hash_algo, hash_mode); in allocate_tee_operation()
245 processing->tee_hash_algo = hash_algo; in allocate_tee_operation()
/optee_os-3.20.0/core/drivers/crypto/versal/
A Drsa.c70 assert(rsa_data->hash_algo != TEE_ALG_SHA1); in do_encrypt()
162 assert(rsa_data->hash_algo != TEE_ALG_SHA1); in do_decrypt()
/optee_os-3.20.0/core/drivers/crypto/caam/acipher/
A Dcaam_rsa.c772 ret = tee_hash_createdigest(rsa_data->hash_algo, rsa_data->label.data, in do_oaep_decoding()
826 mgf_data.hash_algo = rsa_data->hash_algo; in do_oaep_decoding()
1000 ret = tee_hash_createdigest(rsa_data->hash_algo, rsa_data->label.data, in do_oaep_encoding()
1059 mgf_data.hash_algo = rsa_data->hash_algo; in do_oaep_encoding()
/optee_os-3.20.0/core/drivers/crypto/se050/core/
A Drsa.c723 if (rsa_data->hash_algo != TEE_ALG_SHA1) in do_encrypt()
801 if (rsa_data->hash_algo != TEE_ALG_SHA1) in do_decrypt()

Completed in 20 milliseconds