Mbed TLS v3.6.3
|
Functions | |
int | psa_can_do_hash (psa_algorithm_t hash_alg) |
The functions in this group are meant to be implemented by providers of the PSA Crypto client interface. They are provided by the library when MBEDTLS_PSA_CRYPTO_C is enabled.
int psa_can_do_hash | ( | psa_algorithm_t | hash_alg | ) |
Check if PSA is capable of handling the specified hash algorithm.
This means that PSA core was built with the corresponding PSA_WANT_ALG_xxx set and that psa_crypto_init has already been called.
hash_alg | The hash algorithm. |
hash_alg
, 0 otherwise.