Move pk_info structure to its own file

This is in preparation to adding support for opaque keys in the pk layer. The
header files are for use as follows:

* pk.h for users of the pk interface.
* pk_info.h for implementers of opaque key engines.
* pk_internal.h only inside libmbedcrypto to implement built-in pk types.
This commit is contained in:
Gilles Peskine
2017-11-03 11:58:25 +01:00
committed by Andrzej Kurek
parent cd062d84d6
commit 5cc7bc596d
5 changed files with 98 additions and 60 deletions

View File

@@ -28,6 +28,7 @@
#if defined(MBEDTLS_PK_C)
#include "mbedtls/pk.h"
#include "mbedtls/pk_internal.h"
#include "mbedtls/pk_info.h"
#if defined(MBEDTLS_RSA_C)
#include "mbedtls/rsa.h"

View File

@@ -26,6 +26,7 @@
#endif
#if defined(MBEDTLS_PK_C)
#include "mbedtls/pk_info.h"
#include "mbedtls/pk_internal.h"
/* Even if RSA not activated, for the sake of RSA-alt */