Skip to content
Permalink
Browse files

mbedtls: move to external module

Use external module from https://github.com/zephyrproject-rtos/mbedtls

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
  • Loading branch information...
nashif committed May 9, 2019
1 parent 265b195 commit 6e27d6d3d14f505caebf5e489926a8117078db1a
Showing with 12 additions and 115,043 deletions.
  1. +1 −1 CMakeLists.txt
  2. +0 −1 CODEOWNERS
  3. +0 −1 ext/lib/crypto/CMakeLists.txt
  4. +0 −1 ext/lib/crypto/Kconfig
  5. +0 −117 ext/lib/crypto/mbedtls/CMakeLists.txt
  6. +0 −3,167 ext/lib/crypto/mbedtls/ChangeLog
  7. +0 −223 ext/lib/crypto/mbedtls/README
  8. +0 −104 ext/lib/crypto/mbedtls/configs/config-ccm-psk-tls1_2.h
  9. +0 −102 ext/lib/crypto/mbedtls/configs/config-coap.h
  10. +0 −83 ext/lib/crypto/mbedtls/configs/config-mini-dtls1_2.h
  11. +0 −78 ext/lib/crypto/mbedtls/configs/config-mini-tls1_1.h
  12. +0 −80 ext/lib/crypto/mbedtls/configs/config-mini-tls1_2.h
  13. +0 −91 ext/lib/crypto/mbedtls/configs/config-no-entropy.h
  14. +0 −117 ext/lib/crypto/mbedtls/configs/config-suite-b.h
  15. +0 −94 ext/lib/crypto/mbedtls/configs/config-thread.h
  16. +0 −107 ext/lib/crypto/mbedtls/configs/config-threadnet.h
  17. +0 −399 ext/lib/crypto/mbedtls/configs/config-tls-generic.h
  18. +0 −670 ext/lib/crypto/mbedtls/include/mbedtls/aes.h
  19. +0 −132 ext/lib/crypto/mbedtls/include/mbedtls/aesni.h
  20. +0 −142 ext/lib/crypto/mbedtls/include/mbedtls/arc4.h
  21. +0 −370 ext/lib/crypto/mbedtls/include/mbedtls/aria.h
  22. +0 −358 ext/lib/crypto/mbedtls/include/mbedtls/asn1.h
  23. +0 −322 ext/lib/crypto/mbedtls/include/mbedtls/asn1write.h
  24. +0 −89 ext/lib/crypto/mbedtls/include/mbedtls/base64.h
  25. +0 −957 ext/lib/crypto/mbedtls/include/mbedtls/bignum.h
  26. +0 −287 ext/lib/crypto/mbedtls/include/mbedtls/blowfish.h
  27. +0 −909 ext/lib/crypto/mbedtls/include/mbedtls/bn_mul.h
  28. +0 −322 ext/lib/crypto/mbedtls/include/mbedtls/camellia.h
  29. +0 −304 ext/lib/crypto/mbedtls/include/mbedtls/ccm.h
  30. +0 −100 ext/lib/crypto/mbedtls/include/mbedtls/certs.h
  31. +0 −226 ext/lib/crypto/mbedtls/include/mbedtls/chacha20.h
  32. +0 −358 ext/lib/crypto/mbedtls/include/mbedtls/chachapoly.h
  33. +0 −698 ext/lib/crypto/mbedtls/include/mbedtls/check_config.h
  34. +0 −872 ext/lib/crypto/mbedtls/include/mbedtls/cipher.h
  35. +0 −125 ext/lib/crypto/mbedtls/include/mbedtls/cipher_internal.h
  36. +0 −207 ext/lib/crypto/mbedtls/include/mbedtls/cmac.h
  37. +0 −2,525 ext/lib/crypto/mbedtls/include/mbedtls/compat-1.3.h
  38. +0 −3,274 ext/lib/crypto/mbedtls/include/mbedtls/config.h
  39. +0 −370 ext/lib/crypto/mbedtls/include/mbedtls/ctr_drbg.h
  40. +0 −265 ext/lib/crypto/mbedtls/include/mbedtls/debug.h
  41. +0 −352 ext/lib/crypto/mbedtls/include/mbedtls/des.h
  42. +0 −1,093 ext/lib/crypto/mbedtls/include/mbedtls/dhm.h
  43. +0 −434 ext/lib/crypto/mbedtls/include/mbedtls/ecdh.h
  44. +0 −539 ext/lib/crypto/mbedtls/include/mbedtls/ecdsa.h
  45. +0 −272 ext/lib/crypto/mbedtls/include/mbedtls/ecjpake.h
  46. +0 −1,126 ext/lib/crypto/mbedtls/include/mbedtls/ecp.h
  47. +0 −293 ext/lib/crypto/mbedtls/include/mbedtls/ecp_internal.h
  48. +0 −289 ext/lib/crypto/mbedtls/include/mbedtls/entropy.h
  49. +0 −110 ext/lib/crypto/mbedtls/include/mbedtls/entropy_poll.h
  50. +0 −123 ext/lib/crypto/mbedtls/include/mbedtls/error.h
  51. +0 −316 ext/lib/crypto/mbedtls/include/mbedtls/gcm.h
  52. +0 −75 ext/lib/crypto/mbedtls/include/mbedtls/havege.h
  53. +0 −135 ext/lib/crypto/mbedtls/include/mbedtls/hkdf.h
  54. +0 −328 ext/lib/crypto/mbedtls/include/mbedtls/hmac_drbg.h
  55. +0 −468 ext/lib/crypto/mbedtls/include/mbedtls/md.h
  56. +0 −302 ext/lib/crypto/mbedtls/include/mbedtls/md2.h
  57. +0 −307 ext/lib/crypto/mbedtls/include/mbedtls/md4.h
  58. +0 −307 ext/lib/crypto/mbedtls/include/mbedtls/md5.h
  59. +0 −115 ext/lib/crypto/mbedtls/include/mbedtls/md_internal.h
  60. +0 −151 ext/lib/crypto/mbedtls/include/mbedtls/memory_buffer_alloc.h
  61. +0 −32 ext/lib/crypto/mbedtls/include/mbedtls/net.h
  62. +0 −271 ext/lib/crypto/mbedtls/include/mbedtls/net_sockets.h
  63. +0 −178 ext/lib/crypto/mbedtls/include/mbedtls/nist_kw.h
  64. +0 −605 ext/lib/crypto/mbedtls/include/mbedtls/oid.h
  65. +0 −120 ext/lib/crypto/mbedtls/include/mbedtls/padlock.h
  66. +0 −130 ext/lib/crypto/mbedtls/include/mbedtls/pem.h
  67. +0 −747 ext/lib/crypto/mbedtls/include/mbedtls/pk.h
  68. +0 −138 ext/lib/crypto/mbedtls/include/mbedtls/pk_internal.h
  69. +0 −175 ext/lib/crypto/mbedtls/include/mbedtls/pkcs11.h
  70. +0 −124 ext/lib/crypto/mbedtls/include/mbedtls/pkcs12.h
  71. +0 −99 ext/lib/crypto/mbedtls/include/mbedtls/pkcs5.h
  72. +0 −367 ext/lib/crypto/mbedtls/include/mbedtls/platform.h
  73. +0 −82 ext/lib/crypto/mbedtls/include/mbedtls/platform_time.h
  74. +0 −185 ext/lib/crypto/mbedtls/include/mbedtls/platform_util.h
  75. +0 −192 ext/lib/crypto/mbedtls/include/mbedtls/poly1305.h
  76. +0 −233 ext/lib/crypto/mbedtls/include/mbedtls/ripemd160.h
  77. +0 −1,267 ext/lib/crypto/mbedtls/include/mbedtls/rsa.h
  78. +0 −226 ext/lib/crypto/mbedtls/include/mbedtls/rsa_internal.h
  79. +0 −348 ext/lib/crypto/mbedtls/include/mbedtls/sha1.h
  80. +0 −293 ext/lib/crypto/mbedtls/include/mbedtls/sha256.h
  81. +0 −295 ext/lib/crypto/mbedtls/include/mbedtls/sha512.h
  82. +0 −3,256 ext/lib/crypto/mbedtls/include/mbedtls/ssl.h
  83. +0 −144 ext/lib/crypto/mbedtls/include/mbedtls/ssl_cache.h
  84. +0 −534 ext/lib/crypto/mbedtls/include/mbedtls/ssl_ciphersuites.h
  85. +0 −109 ext/lib/crypto/mbedtls/include/mbedtls/ssl_cookie.h
  86. +0 −776 ext/lib/crypto/mbedtls/include/mbedtls/ssl_internal.h
  87. +0 −136 ext/lib/crypto/mbedtls/include/mbedtls/ssl_ticket.h
  88. +0 −122 ext/lib/crypto/mbedtls/include/mbedtls/threading.h
  89. +0 −153 ext/lib/crypto/mbedtls/include/mbedtls/timing.h
  90. +0 −112 ext/lib/crypto/mbedtls/include/mbedtls/version.h
  91. +0 −333 ext/lib/crypto/mbedtls/include/mbedtls/x509.h
  92. +0 −174 ext/lib/crypto/mbedtls/include/mbedtls/x509_crl.h
  93. +0 −785 ext/lib/crypto/mbedtls/include/mbedtls/x509_crt.h
  94. +0 −299 ext/lib/crypto/mbedtls/include/mbedtls/x509_csr.h
  95. +0 −135 ext/lib/crypto/mbedtls/include/mbedtls/xtea.h
  96. +0 −2,207 ext/lib/crypto/mbedtls/library/aes.c
  97. +0 −470 ext/lib/crypto/mbedtls/library/aesni.c
  98. +0 −201 ext/lib/crypto/mbedtls/library/arc4.c
  99. +0 −1,079 ext/lib/crypto/mbedtls/library/aria.c
  100. +0 −389 ext/lib/crypto/mbedtls/library/asn1parse.c
  101. +0 −415 ext/lib/crypto/mbedtls/library/asn1write.c
  102. +0 −293 ext/lib/crypto/mbedtls/library/base64.c
  103. +0 −2,635 ext/lib/crypto/mbedtls/library/bignum.c
  104. +0 −696 ext/lib/crypto/mbedtls/library/blowfish.c
  105. +0 −1,114 ext/lib/crypto/mbedtls/library/camellia.c
  106. +0 −539 ext/lib/crypto/mbedtls/library/ccm.c
  107. +0 −406 ext/lib/crypto/mbedtls/library/certs.c
  108. +0 −570 ext/lib/crypto/mbedtls/library/chacha20.c
  109. +0 −540 ext/lib/crypto/mbedtls/library/chachapoly.c
  110. +0 −1,164 ext/lib/crypto/mbedtls/library/cipher.c
  111. +0 −2,272 ext/lib/crypto/mbedtls/library/cipher_wrap.c
  112. +0 −1,078 ext/lib/crypto/mbedtls/library/cmac.c
  113. +0 −721 ext/lib/crypto/mbedtls/library/ctr_drbg.c
  114. +0 −418 ext/lib/crypto/mbedtls/library/debug.c
  115. +0 −1,057 ext/lib/crypto/mbedtls/library/des.c
  116. +0 −696 ext/lib/crypto/mbedtls/library/dhm.c
  117. +0 −653 ext/lib/crypto/mbedtls/library/ecdh.c
  118. +0 −894 ext/lib/crypto/mbedtls/library/ecdsa.c
  119. +0 −1,140 ext/lib/crypto/mbedtls/library/ecjpake.c
  120. +0 −2,989 ext/lib/crypto/mbedtls/library/ecp.c
  121. +0 −1,468 ext/lib/crypto/mbedtls/library/ecp_curves.c
  122. +0 −721 ext/lib/crypto/mbedtls/library/entropy.c
  123. +0 −236 ext/lib/crypto/mbedtls/library/entropy_poll.c
  124. +0 −916 ext/lib/crypto/mbedtls/library/error.c
  125. +0 −994 ext/lib/crypto/mbedtls/library/gcm.c
  126. +0 −241 ext/lib/crypto/mbedtls/library/havege.c
  127. +0 −192 ext/lib/crypto/mbedtls/library/hkdf.c
  128. +0 −580 ext/lib/crypto/mbedtls/library/hmac_drbg.c
  129. +0 −475 ext/lib/crypto/mbedtls/library/md.c
  130. +0 −363 ext/lib/crypto/mbedtls/library/md2.c
  131. +0 −468 ext/lib/crypto/mbedtls/library/md4.c
  132. +0 −495 ext/lib/crypto/mbedtls/library/md5.c
  133. +0 −586 ext/lib/crypto/mbedtls/library/md_wrap.c
  134. +0 −750 ext/lib/crypto/mbedtls/library/memory_buffer_alloc.c
  135. +0 −671 ext/lib/crypto/mbedtls/library/net_sockets.c
  136. +0 −755 ext/lib/crypto/mbedtls/library/nist_kw.c
  137. +0 −755 ext/lib/crypto/mbedtls/library/oid.c
  138. +0 −170 ext/lib/crypto/mbedtls/library/padlock.c
  139. +0 −490 ext/lib/crypto/mbedtls/library/pem.c
  140. +0 −546 ext/lib/crypto/mbedtls/library/pk.c
  141. +0 −719 ext/lib/crypto/mbedtls/library/pk_wrap.c
  142. +0 −240 ext/lib/crypto/mbedtls/library/pkcs11.c
  143. +0 −365 ext/lib/crypto/mbedtls/library/pkcs12.c
  144. +0 −411 ext/lib/crypto/mbedtls/library/pkcs5.c
  145. +0 −1,482 ext/lib/crypto/mbedtls/library/pkparse.c
  146. +0 −545 ext/lib/crypto/mbedtls/library/pkwrite.c
  147. +0 −348 ext/lib/crypto/mbedtls/library/platform.c
  148. +0 −136 ext/lib/crypto/mbedtls/library/platform_util.c
  149. +0 −559 ext/lib/crypto/mbedtls/library/poly1305.c
  150. +0 −552 ext/lib/crypto/mbedtls/library/ripemd160.c
  151. +0 −2,720 ext/lib/crypto/mbedtls/library/rsa.c
  152. +0 −492 ext/lib/crypto/mbedtls/library/rsa_internal.c
  153. +0 −571 ext/lib/crypto/mbedtls/library/sha1.c
  154. +0 −585 ext/lib/crypto/mbedtls/library/sha256.c
  155. +0 −635 ext/lib/crypto/mbedtls/library/sha512.c
  156. +0 −327 ext/lib/crypto/mbedtls/library/ssl_cache.c
  157. +0 −2,360 ext/lib/crypto/mbedtls/library/ssl_ciphersuites.c
  158. +0 −3,636 ext/lib/crypto/mbedtls/library/ssl_cli.c
  159. +0 −256 ext/lib/crypto/mbedtls/library/ssl_cookie.c
  160. +0 −4,379 ext/lib/crypto/mbedtls/library/ssl_srv.c
  161. +0 −485 ext/lib/crypto/mbedtls/library/ssl_ticket.c
  162. +0 −9,787 ext/lib/crypto/mbedtls/library/ssl_tls.c
  163. +0 −187 ext/lib/crypto/mbedtls/library/threading.c
  164. +0 −537 ext/lib/crypto/mbedtls/library/timing.c
  165. +0 −50 ext/lib/crypto/mbedtls/library/version.c
  166. +0 −776 ext/lib/crypto/mbedtls/library/version_features.c
  167. +0 −1,064 ext/lib/crypto/mbedtls/library/x509.c
  168. +0 −379 ext/lib/crypto/mbedtls/library/x509_create.c
  169. +0 −773 ext/lib/crypto/mbedtls/library/x509_crl.c
  170. +0 −2,731 ext/lib/crypto/mbedtls/library/x509_crt.c
  171. +0 −410 ext/lib/crypto/mbedtls/library/x509_csr.c
  172. +0 −481 ext/lib/crypto/mbedtls/library/x509write_crt.c
  173. +0 −262 ext/lib/crypto/mbedtls/library/x509write_csr.c
  174. +0 −277 ext/lib/crypto/mbedtls/library/xtea.c
  175. +0 −52 ext/lib/crypto/mbedtls/zephyr_init.c
  176. +2 −2 kernel/userspace.c
  177. +1 −1 ext/lib/crypto/mbedtls/Kconfig → modules/Kconfig.mbedtls
  178. +5 −5 {ext/lib/crypto/mbedtls → modules}/Kconfig.tls-generic
  179. +3 −0 west.yml
@@ -996,7 +996,7 @@ if(CONFIG_USERSPACE)
set(NEWLIB_PART -l libc.a z_libc_partition)
endif()
if(CONFIG_MBEDTLS)
set(MBEDTLS_PART -l libext__lib__crypto__mbedtls.a k_mbedtls_partition)
set(MBEDTLS_PART -l lib..__modules__crypto__mbedtls.a k_mbedtls_partition)
endif()

add_custom_command(
@@ -191,7 +191,6 @@
/ext/hal/nxp/ @MaureenHelm
/ext/hal/st/ @erwango
/ext/hal/ti/simplelink/ @vanti
/ext/lib/crypto/mbedtls/ @nashif
/ext/lib/crypto/tinycrypt/ @ceolin
/include/adc.h @anangl
/include/app_memory/ @andrewboie
@@ -1,2 +1 @@
add_subdirectory_if_kconfig(tinycrypt)
add_subdirectory_ifdef(CONFIG_MBEDTLS mbedtls)
@@ -7,6 +7,5 @@
menu "Cryptography"

source "ext/lib/crypto/tinycrypt/Kconfig"
source "ext/lib/crypto/mbedtls/Kconfig"

endmenu

This file was deleted.

0 comments on commit 6e27d6d

Please sign in to comment.
You can’t perform that action at this time.