Home
last modified time | relevance | path

Searched refs:md_alg (Results 1 – 7 of 7) sorted by relevance

/external/arm-trusted-firmware/drivers/auth/cryptocell/713/
Dcryptocell_crypto.c84 mbedtls_md_type_t md_alg; in verify_signature() local
103 rc = mbedtls_oid_get_sig_alg(&sig_oid, &md_alg, &pk_alg); in verify_signature()
108 if (pk_alg != MBEDTLS_PK_RSASSA_PSS || md_alg != MBEDTLS_MD_NONE) in verify_signature()
113 rc = mbedtls_x509_get_rsassa_pss_params(&params, &md_alg, in verify_signature()
120 if (md_alg != MBEDTLS_MD_SHA256 || in verify_signature()
221 mbedtls_md_type_t md_alg; in verify_hash() local
241 rc = mbedtls_oid_get_md_alg(&hash_oid, &md_alg); in verify_hash()
245 if (md_alg != MBEDTLS_MD_SHA256) in verify_hash()
/external/arm-trusted-firmware/drivers/auth/cryptocell/712/
Dcryptocell_crypto.c100 mbedtls_md_type_t md_alg; in verify_signature() local
117 rc = mbedtls_oid_get_sig_alg(&sig_oid, &md_alg, &pk_alg); in verify_signature()
122 if (pk_alg != MBEDTLS_PK_RSASSA_PSS || md_alg != MBEDTLS_MD_NONE) in verify_signature()
127 rc = mbedtls_x509_get_rsassa_pss_params(&params, &md_alg, in verify_signature()
134 if (md_alg != MBEDTLS_MD_SHA256 || pss_opts.mgf1_hash_id != MBEDTLS_MD_SHA256) in verify_signature()
247 mbedtls_md_type_t md_alg; in verify_hash() local
267 rc = mbedtls_oid_get_md_alg(&hash_oid, &md_alg); in verify_hash()
271 if (md_alg != MBEDTLS_MD_SHA256) in verify_hash()
/external/arm-trusted-firmware/drivers/auth/mbedtls/
Dmbedtls_crypto.c66 mbedtls_md_type_t md_alg; in verify_signature() local
84 rc = mbedtls_x509_get_sig_alg(&sig_oid, &sig_params, &md_alg, &pk_alg, &sig_opts); in verify_signature()
111 md_info = mbedtls_md_info_from_type(md_alg); in verify_signature()
124 rc = mbedtls_pk_verify_ext(pk_alg, sig_opts, &pk, md_alg, hash, in verify_signature()
152 mbedtls_md_type_t md_alg; in verify_hash() local
174 rc = mbedtls_oid_get_md_alg(&hash_oid, &md_alg); in verify_hash()
179 md_info = mbedtls_md_info_from_type(md_alg); in verify_hash()
/external/arm-trusted-firmware/tools/cert_create/src/
Dsha.c14 int sha_file(int md_alg, const char *filename, unsigned char *md) in sha_file() argument
33 if (md_alg == HASH_ALG_SHA384) { in sha_file()
39 } else if (md_alg == HASH_ALG_SHA512) { in sha_file()
Dcert.c90 int md_alg, in cert_new() argument
133 if (!EVP_DigestSignInit(mdCtx, &pKeyCtx, get_digest(md_alg), NULL, ikey)) { in cert_new()
153 if (!EVP_PKEY_CTX_set_rsa_mgf1_md(pKeyCtx, get_digest(md_alg))) { in cert_new()
/external/arm-trusted-firmware/tools/cert_create/include/
Dsha.h10 int sha_file(int md_alg, const char *filename, unsigned char *md);
Dcert.h52 int md_alg,