{"id":13337987,"url":"https://github.com/dunkelstern/mbedtls-esp8266","last_synced_at":"2025-10-30T10:10:00.066Z","repository":{"id":142590499,"uuid":"95707106","full_name":"dunkelstern/mbedtls-esp8266","owner":"dunkelstern","description":"Updated and Upgraded mbedTLS library for the ESP8266 (probably ESP32 too)","archived":false,"fork":false,"pushed_at":"2017-06-28T20:09:53.000Z","size":718,"stargazers_count":15,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-23T20:11:31.154Z","etag":null,"topics":["chacha20","crypto","ed25519","embedded","esp8266","hkdf","mbedtls","poly1305","srp","tls"],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dunkelstern.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-Apache-2.0.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-06-28T20:05:10.000Z","updated_at":"2023-08-23T01:24:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"6899f579-5942-4ea8-821f-4a97d6407f05","html_url":"https://github.com/dunkelstern/mbedtls-esp8266","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dunkelstern%2Fmbedtls-esp8266","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dunkelstern%2Fmbedtls-esp8266/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dunkelstern%2Fmbedtls-esp8266/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dunkelstern%2Fmbedtls-esp8266/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dunkelstern","download_url":"https://codeload.github.com/dunkelstern/mbedtls-esp8266/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228330100,"owners_count":17903019,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chacha20","crypto","ed25519","embedded","esp8266","hkdf","mbedtls","poly1305","srp","tls"],"created_at":"2024-07-29T19:15:16.757Z","updated_at":"2025-10-30T10:09:55.045Z","avatar_url":"https://github.com/dunkelstern.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# mbedTLS and patches for ESP8266\n\nThis library replaces the integrated mbedTLS library that is integrated into the original ESP8266 SDK (NON OS and RTOS).\n\nThis is an updated and upgraded version. mbedTLS base was 2.5.0 but some patches have been integrated.\n\nSee the original repository that was taken from the official mbedTLS development branch here: https://github.com/dunkelstern/mbedtls\n\nIntegrated patches so far, see below for sources:\n\n- HKDF (**H**MAC based **K**ey **D**erivation **F**unction)\n- AEAD ChaCha20 + Poly1305\n- ED25519\n- SRP (**S**ecure **R**emote **P**assword)\n\n## Building\n\nSome pointers:\n\n1. Get the ESP8266 compiler: https://github.com/pfalcon/esp-open-sdk\n2. Get the SDK\n3. Unpack SDK somewhere\n4. Set up the environment\n    ```bash\n    export PATH=\"/path/to/compiler/xtensa-lx106-elf/bin:$PATH\"\n    export SDK_PATH=\"$HOME/esp-sdk/ESP8266_RTOS_SDK\"\n    export BIN_PATH=\"$HOME/esp-sdk/build\"\n\n    export CFLAGS=\"-I${SDK_PATH}/include -I${SDK_PATH}/extra_include $CFLAGS\"\n    export LDFLAGS=\"-L${SDK_PATH}/lib $LDFLAGS\"\n    ```\n5. Switch to the base directory and run `make`\n6. Grab the library from `.output/lib/libmbedtls.a`\n7. Grab the headers from `include/*.h`\n\nIf you want to enable or disable some functionality of mbedTLS open `platform/config_esp.h` and set yourself up.\n\n## Legal\n\n### mbedTLS\n\nCloned from https://github.com/ARMmbed/mbedtls\n\nLicense: Apache License 2.0 (see LICENSE-Apache-2.0.txt)\n\n### Platform integration code\n\nFrom the ESP8266 SDK: https://github.com/espressif/ESP8266_RTOS_SDK\n\nCopyright (C) 2006-2015, ARM Limited, All Rights Reserved\nAdditions Copyright (C) 2015 Angus Gratton\n\nLicense: Apache License 2.0 (see LICENSE-Apache-2.0.txt)\n\n### HKDF \n\nIntegrated patches from: https://github.com/thomas-fossati/mbedtls\n\nLicense: Apache License 2.0 (see LICENSE-Apache-2.0.txt)\n\n### AEAD ChaCha20 + Poly1305 \n\nIntegrated patches from: https://github.com/damaki/mbedtls/tree/chacha20\n\nLicense: Apache License 2.0 (see LICENSE-Apache-2.0.txt)\n\n### ED25519\n\nIntegrated patches from: https://github.com/VirgilSecurity/mbedtls/tree/virgil-security-ed25519\n\nLicense: Apache License 2.0 (see LICENSE-Apache-2.0.txt)\n\n### SRP (Secure Remote Password)\n\nOriginal Repository: https://github.com/cocagne/csrp\n\nConversion to mbedTLS: https://github.com/dwimberger/mbedtls-csrp\n\nPatches by:\n\n- https://github.com/ksjoberg/csrp.git\n- https://github.com/damv/mbedtls-csrp\n- https://github.com/dunkelstern/mbedtls-csrp\n\nLicense: MIT (see LICENSE-MIT.txt)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdunkelstern%2Fmbedtls-esp8266","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdunkelstern%2Fmbedtls-esp8266","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdunkelstern%2Fmbedtls-esp8266/lists"}