Skip to content
0.2.0-dev Download ZIP
26 lines ·689 B Raw
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 TF_PSA_CRYPTO_MD_PSA_H
11#define TF_PSA_CRYPTO_MD_PSA_H
12
13#include "tf_psa_crypto_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 */
24int mbedtls_md_error_from_psa(psa_status_t status);
25
26#endif /* TF_PSA_CRYPTO_MD_PSA_H */