/optee_os-3.20.0/core/tee/ |
A D | tee_cryp_hkdf.c | 16 static TEE_Result hkdf_extract(uint32_t hash_id, const uint8_t *ikm, in hkdf_extract() argument 22 uint32_t hash_algo = TEE_ALG_HASH_ALGO(hash_id); in hkdf_extract() 23 uint32_t hmac_algo = (TEE_OPERATION_MAC << 28) | hash_id; in hkdf_extract() 65 static TEE_Result hkdf_expand(uint32_t hash_id, const uint8_t *prk, in hkdf_expand() argument 73 uint32_t hash_algo = TEE_ALG_HASH_ALGO(hash_id); in hkdf_expand() 74 uint32_t hmac_algo = TEE_ALG_HMAC_ALGO(hash_id); in hkdf_expand() 144 TEE_Result tee_cryp_hkdf(uint32_t hash_id, const uint8_t *ikm, size_t ikm_len, in tee_cryp_hkdf() argument 153 res = hkdf_extract(hash_id, ikm, ikm_len, salt, salt_len, prk, in tee_cryp_hkdf() 157 res = hkdf_expand(hash_id, prk, prk_len, info, info_len, okm, in tee_cryp_hkdf()
|
A D | tee_cryp_concat_kdf.c | 13 TEE_Result tee_cryp_concat_kdf(uint32_t hash_id, const uint8_t *shared_secret, in tee_cryp_concat_kdf() argument 25 uint32_t hash_algo = TEE_ALG_HASH_ALGO(hash_id); in tee_cryp_concat_kdf()
|
A D | tee_cryp_pbkdf2.c | 71 TEE_Result tee_cryp_pbkdf2(uint32_t hash_id, const uint8_t *password, in tee_cryp_pbkdf2() argument 82 hmac_parms.algo = TEE_ALG_HMAC_ALGO(hash_id); in tee_cryp_pbkdf2()
|
A D | tee_svc_cryp.c | 3516 uint32_t hash_id = TEE_ALG_GET_DIGEST_HASH(cs->algo); in syscall_cryp_derive_key() local 3531 res = tee_cryp_hkdf(hash_id, ikm, ik->key_size, salt, salt_len, in syscall_cryp_derive_key() 3545 uint32_t hash_id = TEE_ALG_GET_DIGEST_HASH(cs->algo); in syscall_cryp_derive_key() local 3560 res = tee_cryp_concat_kdf(hash_id, shared_secret, ss->key_size, in syscall_cryp_derive_key() 3574 uint32_t hash_id = TEE_ALG_GET_DIGEST_HASH(cs->algo); in syscall_cryp_derive_key() local 3589 res = tee_cryp_pbkdf2(hash_id, password, ss->key_size, salt, in syscall_cryp_derive_key()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/misc/pkcs12/ |
A D | pkcs12_kdf.c | 8 int pkcs12_kdf( int hash_id, in pkcs12_kdf() argument 14 unsigned long u = hash_descriptor[hash_id]->hashsize; in pkcs12_kdf() 15 unsigned long v = hash_descriptor[hash_id]->blocksize; in pkcs12_kdf() 42 … err = hash_memory_multi(hash_id, A, &Alen, D, v, I, Slen + Plen, LTC_NULL); /* A = HASH(D || I) */ in pkcs12_kdf() 45 err = hash_memory(hash_id, A, Alen, A, &Alen); /* A = HASH(A) */ in pkcs12_kdf()
|
/optee_os-3.20.0/core/include/tee/ |
A D | tee_cryp_concat_kdf.h | 11 TEE_Result tee_cryp_concat_kdf(uint32_t hash_id, const uint8_t *shared_secret,
|
A D | tee_cryp_pbkdf2.h | 11 TEE_Result tee_cryp_pbkdf2(uint32_t hash_id, const uint8_t *password,
|
A D | tee_cryp_hkdf.h | 11 TEE_Result tee_cryp_hkdf(uint32_t hash_id, const uint8_t *ikm, size_t ikm_len,
|
/optee_os-3.20.0/lib/libmbedtls/mbedtls/include/mbedtls/ |
A D | rsa.h | 139 int hash_id; /*!< Hash identifier of mbedtls_md_type_t type, member 183 int hash_id ); 424 int hash_id );
|
/optee_os-3.20.0/lib/libmbedtls/mbedtls/library/ |
A D | rsa.c | 470 int hash_id ) in mbedtls_rsa_init() argument 478 mbedtls_rsa_set_padding( ctx, padding, hash_id ); in mbedtls_rsa_init() 492 int hash_id ) in mbedtls_rsa_set_padding() argument 499 ctx->hash_id = hash_id; in mbedtls_rsa_set_padding() 1173 md_info = mbedtls_md_info_from_type( (mbedtls_md_type_t) ctx->hash_id ); in mbedtls_rsa_rsaes_oaep_encrypt() 1379 md_info = mbedtls_md_info_from_type( (mbedtls_md_type_t) ctx->hash_id ); in mbedtls_rsa_rsaes_oaep_decrypt() 1621 md_info = mbedtls_md_info_from_type( (mbedtls_md_type_t) ctx->hash_id ); in rsa_rsassa_pss_sign() 2179 mgf1_hash_id = ( ctx->hash_id != MBEDTLS_MD_NONE ) in mbedtls_rsa_rsassa_pss_verify() 2180 ? (mbedtls_md_type_t) ctx->hash_id in mbedtls_rsa_rsassa_pss_verify() 2346 dst->hash_id = src->hash_id; in mbedtls_rsa_copy()
|
/optee_os-3.20.0/core/drivers/crypto/caam/hash/ |
A D | caam_hash.c | 356 uint8_t hash_id = TEE_ALG_GET_MAIN_ALG(algo); in caam_hash_get_alg() local 357 unsigned int idx = hash_id - TEE_MAIN_ALGO_MD5; in caam_hash_get_alg() 359 if (hash_id > caam_hash_limit || idx > ARRAY_SIZE(hash_alg)) in caam_hash_get_alg()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/headers/ |
A D | tomcrypt_private.h | 463 int pkcs12_kdf( int hash_id,
|