Lines Matching refs:md_alg
382 void *p_rng, int mode, mbedtls_md_type_t md_alg, unsigned int hashlen, in mbedtls_rsa_pkcs1_sign() argument
401 if (md_alg != MBEDTLS_MD_NONE) { in mbedtls_rsa_pkcs1_sign()
402 const mbedtls_md_info_t *md_info = mbedtls_md_info_from_type(md_alg); in mbedtls_rsa_pkcs1_sign()
407 if (md_alg == MBEDTLS_MD_MD5) { in mbedtls_rsa_pkcs1_sign()
409 } else if (md_alg == MBEDTLS_MD_SHA1) { in mbedtls_rsa_pkcs1_sign()
411 } else if (md_alg == MBEDTLS_MD_SHA256) { in mbedtls_rsa_pkcs1_sign()
418 if (md_alg == MBEDTLS_MD_MD5) { in mbedtls_rsa_pkcs1_sign()
420 } else if (md_alg == MBEDTLS_MD_SHA1) { in mbedtls_rsa_pkcs1_sign()
422 } else if (md_alg == MBEDTLS_MD_SHA256) { in mbedtls_rsa_pkcs1_sign()
473 mbedtls_md_type_t md_alg, unsigned int hashlen, in mbedtls_rsa_pkcs1_verify() argument
490 if (md_alg != MBEDTLS_MD_NONE) { in mbedtls_rsa_pkcs1_verify()
491 const mbedtls_md_info_t *md_info = mbedtls_md_info_from_type(md_alg); in mbedtls_rsa_pkcs1_verify()
496 if (md_alg == MBEDTLS_MD_MD5) { in mbedtls_rsa_pkcs1_verify()
498 } else if (md_alg == MBEDTLS_MD_SHA1) { in mbedtls_rsa_pkcs1_verify()
500 } else if (md_alg == MBEDTLS_MD_SHA256) { in mbedtls_rsa_pkcs1_verify()
507 if (md_alg == MBEDTLS_MD_MD5) { in mbedtls_rsa_pkcs1_verify()
509 } else if (md_alg == MBEDTLS_MD_SHA1) { in mbedtls_rsa_pkcs1_verify()
511 } else if (md_alg == MBEDTLS_MD_SHA256) { in mbedtls_rsa_pkcs1_verify()