Searched refs:hash_algo (Results 1 – 12 of 12) sorted by relevance
/optee_os-3.20.0/core/tee/ |
A D | tee_cryp_concat_kdf.c | 25 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 D | tee_cryp_hkdf.c | 22 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 D | tee_svc_cryp.c | 4219 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 D | signed_hdr.c | 66 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 D | drvcrypt_acipher.h | 37 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 D | rsassa.c | 40 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 D | rsa.c | 227 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 D | rsamgf.c | 38 ret = crypto_hash_alloc_ctx(&ctx, mgf_data->hash_algo); in drvcrypt_rsa_mgf1()
|
/optee_os-3.20.0/ta/pkcs11/src/ |
A D | processing_asymm.c | 218 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 D | rsa.c | 70 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 D | caam_rsa.c | 772 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 D | rsa.c | 723 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 34 milliseconds