This function returns the PSA algorithm identifier associated with the given digest type.
- Parameters
-
md_type | The type of digest to search for. Must not be NONE. |
- Warning
- If
md_type
is MBEDTLS_MD_NONE
, this function will not return PSA_ALG_NONE
, but an invalid algorithm.
-
This function does not check if the algorithm is supported, it always returns the corresponding identifier.
- Returns
- The PSA algorithm identifier associated with
md_type
, regardless of whether it is supported or not.
Definition at line 121 of file psa_util.h.
References PSA_ALG_CATEGORY_HASH.