1 /**
2  * Translation between MD and PSA identifiers (algorithms, errors).
3  *
4  *  Note: this internal module will go away when everything becomes based on
5  *  PSA Crypto; it is a helper for the transition period.
6  *
7  *  Copyright The Mbed TLS Contributors
8  *  SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
9  */
10 #ifndef MBEDTLS_MD_PSA_H
11 #define MBEDTLS_MD_PSA_H
12 
13 #include "common.h"
14 
15 #include "mbedtls/md.h"
16 #include "psa/crypto.h"
17 
18 /** Convert PSA status to MD error code.
19  *
20  * \param status    PSA status.
21  *
22  * \return          The corresponding MD error code,
23  */
24 int mbedtls_md_error_from_psa(psa_status_t status);
25 
26 #endif /* MBEDTLS_MD_PSA_H */
27