psa_util: add include asn1write.h in public header

This is mandatory to have support for the error codes defined
in the asn1write.h header file.

Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
This commit is contained in:
Valerio Setti 2024-01-10 08:21:10 +01:00
parent bda440f82d
commit 99c0369d31
2 changed files with 5 additions and 2 deletions

View File

@ -16,6 +16,11 @@
#include "psa/crypto.h"
/* ASN1 defines used in the ECDSA conversion functions. */
#if defined(MBEDTLS_ASN1_WRITE_C) || defined(MBEDTLS_ASN1_PARSE_C)
#include <mbedtls/asn1write.h>
#endif
#if defined(MBEDTLS_PSA_CRYPTO_C)
/* Expose whatever RNG the PSA subsystem uses to applications using the

View File

@ -1,8 +1,6 @@
/* BEGIN_HEADER */
#include <stdint.h>
#include <test/helpers.h>
#include <mbedtls/psa_util.h>
#include <mbedtls/asn1write.h>
enum {
ECDSA_RAW_TO_DER = 0,