pk: move mbedtls_pk_load_file to pk_internal
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
This commit is contained in:
parent
25b282ebfe
commit
639d5678b5
4 changed files with 6 additions and 10 deletions
|
@ -1042,14 +1042,6 @@ int mbedtls_pk_write_pubkey(unsigned char **p, unsigned char *start,
|
||||||
const mbedtls_pk_context *key);
|
const mbedtls_pk_context *key);
|
||||||
#endif /* MBEDTLS_PK_WRITE_C */
|
#endif /* MBEDTLS_PK_WRITE_C */
|
||||||
|
|
||||||
/*
|
|
||||||
* Internal module functions. You probably do not want to use these unless you
|
|
||||||
* know you do.
|
|
||||||
*/
|
|
||||||
#if defined(MBEDTLS_FS_IO)
|
|
||||||
int mbedtls_pk_load_file(const char *path, unsigned char **buf, size_t *n);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(MBEDTLS_USE_PSA_CRYPTO)
|
#if defined(MBEDTLS_USE_PSA_CRYPTO)
|
||||||
/**
|
/**
|
||||||
* \brief Turn an EC or RSA key into an opaque one.
|
* \brief Turn an EC or RSA key into an opaque one.
|
||||||
|
|
|
@ -144,4 +144,8 @@ MBEDTLS_STATIC_TESTABLE int mbedtls_pk_parse_key_pkcs8_encrypted_der(
|
||||||
int (*f_rng)(void *, unsigned char *, size_t), void *p_rng);
|
int (*f_rng)(void *, unsigned char *, size_t), void *p_rng);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(MBEDTLS_FS_IO)
|
||||||
|
int mbedtls_pk_load_file(const char *path, unsigned char **buf, size_t *n);
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* MBEDTLS_PK_INTERNAL_H */
|
#endif /* MBEDTLS_PK_INTERNAL_H */
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
#include "mbedtls/x509.h"
|
#include "mbedtls/x509.h"
|
||||||
#include "mbedtls/asn1.h"
|
#include "mbedtls/asn1.h"
|
||||||
#include "mbedtls/pk.h"
|
#include "pk_internal.h"
|
||||||
|
|
||||||
#if defined(MBEDTLS_RSA_C)
|
#if defined(MBEDTLS_RSA_C)
|
||||||
#include "mbedtls/rsa.h"
|
#include "mbedtls/rsa.h"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* BEGIN_HEADER */
|
/* BEGIN_HEADER */
|
||||||
#include "mbedtls/pk.h"
|
#include "pk_internal.h"
|
||||||
#include "mbedtls/pem.h"
|
#include "mbedtls/pem.h"
|
||||||
#include "mbedtls/oid.h"
|
#include "mbedtls/oid.h"
|
||||||
#include "psa/crypto_sizes.h"
|
#include "psa/crypto_sizes.h"
|
||||||
|
|
Loading…
Reference in a new issue