Mbed TLS v3.6.3
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
TLS helper functions

Functions

static psa_algorithm_t mbedtls_md_psa_alg_from_type (mbedtls_md_type_t md_type)
 This function returns the PSA algorithm identifier associated with the given digest type. More...
 
static mbedtls_md_type_t mbedtls_md_type_from_psa_alg (psa_algorithm_t psa_alg)
 This function returns the given digest type associated with the PSA algorithm identifier. More...
 

Detailed Description

Function Documentation

static psa_algorithm_t mbedtls_md_psa_alg_from_type ( mbedtls_md_type_t  md_type)
inlinestatic

This function returns the PSA algorithm identifier associated with the given digest type.

Parameters
md_typeThe 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.

static mbedtls_md_type_t mbedtls_md_type_from_psa_alg ( psa_algorithm_t  psa_alg)
inlinestatic

This function returns the given digest type associated with the PSA algorithm identifier.

Parameters
psa_algThe PSA algorithm identifier to search for.
Warning
This function does not check if the algorithm is supported, it always returns the corresponding identifier.
Returns
The MD type associated with psa_alg, regardless of whether it is supported or not.

Definition at line 138 of file psa_util.h.

References PSA_ALG_HASH_MASK.