Move bn_mul.h to library/

Move `include/mbedtls/bn_mul.h` to `library/bn_mul.h`.

Update includes and references to `bn_mul.h` to new location.

Also remove internal headers from `cpp_dummy_build.cpp` as it should only
test public headers in the library.

Signed-off-by: Chris Jones <christopher.jones@arm.com>
This commit is contained in:
Chris Jones 2021-03-03 17:45:34 +00:00
parent e2191cd789
commit 4c5819c318
6 changed files with 4 additions and 12 deletions

View file

@ -48,7 +48,7 @@
* Used in: * Used in:
* library/aria.c * library/aria.c
* library/timing.c * library/timing.c
* include/mbedtls/bn_mul.h * library/bn_mul.h
* *
* Required by: * Required by:
* MBEDTLS_AESNI_C * MBEDTLS_AESNI_C

View file

@ -48,7 +48,7 @@
* Used in: * Used in:
* library/aria.c * library/aria.c
* library/timing.c * library/timing.c
* include/mbedtls/bn_mul.h * library/bn_mul.h
* *
* Required by: * Required by:
* MBEDTLS_AESNI_C * MBEDTLS_AESNI_C

View file

@ -38,7 +38,7 @@
#if defined(MBEDTLS_BIGNUM_C) #if defined(MBEDTLS_BIGNUM_C)
#include "mbedtls/bignum.h" #include "mbedtls/bignum.h"
#include "mbedtls/bn_mul.h" #include "bn_mul.h"
#include "mbedtls/platform_util.h" #include "mbedtls/platform_util.h"
#include "mbedtls/error.h" #include "mbedtls/error.h"

View file

@ -33,7 +33,6 @@
#include "mbedtls/base64.h" #include "mbedtls/base64.h"
#include "mbedtls/bignum.h" #include "mbedtls/bignum.h"
#include "mbedtls/blowfish.h" #include "mbedtls/blowfish.h"
#include "mbedtls/bn_mul.h"
#include "mbedtls/camellia.h" #include "mbedtls/camellia.h"
#include "mbedtls/ccm.h" #include "mbedtls/ccm.h"
#include "mbedtls/certs.h" #include "mbedtls/certs.h"
@ -41,7 +40,6 @@
#include "mbedtls/chachapoly.h" #include "mbedtls/chachapoly.h"
#include "mbedtls/check_config.h" #include "mbedtls/check_config.h"
#include "mbedtls/cipher.h" #include "mbedtls/cipher.h"
#include "cipher_internal.h"
#include "mbedtls/cmac.h" #include "mbedtls/cmac.h"
#include "mbedtls/ctr_drbg.h" #include "mbedtls/ctr_drbg.h"
#include "mbedtls/debug.h" #include "mbedtls/debug.h"
@ -51,7 +49,6 @@
#include "mbedtls/ecdsa.h" #include "mbedtls/ecdsa.h"
#include "mbedtls/ecjpake.h" #include "mbedtls/ecjpake.h"
#include "mbedtls/ecp.h" #include "mbedtls/ecp.h"
#include "ecp_internal.h"
#include "mbedtls/entropy.h" #include "mbedtls/entropy.h"
#include "mbedtls/entropy_poll.h" #include "mbedtls/entropy_poll.h"
#include "mbedtls/error.h" #include "mbedtls/error.h"
@ -62,7 +59,6 @@
#include "mbedtls/md2.h" #include "mbedtls/md2.h"
#include "mbedtls/md4.h" #include "mbedtls/md4.h"
#include "mbedtls/md5.h" #include "mbedtls/md5.h"
#include "md_internal.h"
#include "mbedtls/net.h" #include "mbedtls/net.h"
#include "mbedtls/net_sockets.h" #include "mbedtls/net_sockets.h"
#include "mbedtls/nist_kw.h" #include "mbedtls/nist_kw.h"
@ -70,7 +66,6 @@
#include "mbedtls/padlock.h" #include "mbedtls/padlock.h"
#include "mbedtls/pem.h" #include "mbedtls/pem.h"
#include "mbedtls/pk.h" #include "mbedtls/pk.h"
#include "pk_internal.h"
#include "mbedtls/pkcs11.h" #include "mbedtls/pkcs11.h"
#include "mbedtls/pkcs12.h" #include "mbedtls/pkcs12.h"
#include "mbedtls/pkcs5.h" #include "mbedtls/pkcs5.h"
@ -80,7 +75,6 @@
#include "mbedtls/psa_util.h" #include "mbedtls/psa_util.h"
#include "mbedtls/ripemd160.h" #include "mbedtls/ripemd160.h"
#include "mbedtls/rsa.h" #include "mbedtls/rsa.h"
#include "rsa_internal.h"
#include "mbedtls/sha1.h" #include "mbedtls/sha1.h"
#include "mbedtls/sha256.h" #include "mbedtls/sha256.h"
#include "mbedtls/sha512.h" #include "mbedtls/sha512.h"
@ -88,7 +82,6 @@
#include "mbedtls/ssl_cache.h" #include "mbedtls/ssl_cache.h"
#include "mbedtls/ssl_ciphersuites.h" #include "mbedtls/ssl_ciphersuites.h"
#include "mbedtls/ssl_cookie.h" #include "mbedtls/ssl_cookie.h"
#include "ssl_internal.h"
#include "mbedtls/ssl_ticket.h" #include "mbedtls/ssl_ticket.h"
#include "mbedtls/threading.h" #include "mbedtls/threading.h"
#include "mbedtls/timing.h" #include "mbedtls/timing.h"
@ -109,7 +102,6 @@
#include "psa/crypto.h" #include "psa/crypto.h"
#include "psa/crypto_se_driver.h" #include "psa/crypto_se_driver.h"
#include "../library/psa_crypto_its.h"
int main() int main()
{ {

View file

@ -150,7 +150,6 @@
<ClInclude Include="..\..\include\mbedtls\base64.h" /> <ClInclude Include="..\..\include\mbedtls\base64.h" />
<ClInclude Include="..\..\include\mbedtls\bignum.h" /> <ClInclude Include="..\..\include\mbedtls\bignum.h" />
<ClInclude Include="..\..\include\mbedtls\blowfish.h" /> <ClInclude Include="..\..\include\mbedtls\blowfish.h" />
<ClInclude Include="..\..\include\mbedtls\bn_mul.h" />
<ClInclude Include="..\..\include\mbedtls\camellia.h" /> <ClInclude Include="..\..\include\mbedtls\camellia.h" />
<ClInclude Include="..\..\include\mbedtls\ccm.h" /> <ClInclude Include="..\..\include\mbedtls\ccm.h" />
<ClInclude Include="..\..\include\mbedtls\certs.h" /> <ClInclude Include="..\..\include\mbedtls\certs.h" />
@ -235,6 +234,7 @@
<ClInclude Include="..\..\tests\include\test\drivers\signature.h" /> <ClInclude Include="..\..\tests\include\test\drivers\signature.h" />
<ClInclude Include="..\..\tests\include\test\drivers\size.h" /> <ClInclude Include="..\..\tests\include\test\drivers\size.h" />
<ClInclude Include="..\..\tests\include\test\drivers\test_driver.h" /> <ClInclude Include="..\..\tests\include\test\drivers\test_driver.h" />
<ClInclude Include="..\..\library\bn_mul.h" />
<ClInclude Include="..\..\library\check_crypto_config.h" /> <ClInclude Include="..\..\library\check_crypto_config.h" />
<ClInclude Include="..\..\library\cipher_internal.h" /> <ClInclude Include="..\..\library\cipher_internal.h" />
<ClInclude Include="..\..\library\common.h" /> <ClInclude Include="..\..\library\common.h" />