Skip to content

Conversation

@jordanhalase
Copy link
Contributor

@jordanhalase jordanhalase commented Jun 24, 2023

  • The code compiles without errors or warnings.
  • All examples work.
  • cargo fmt was run.
  • Your changes were added to the CHANGELOG.md in the proper section.
  • You updated existing examples or added examples (if applicable).
  • Added examples are checked in CI

Nice to have

  • You add a description of your work to this PR.
  • You added proper docs for your newly added features and code.

All the ESP32 chips include an MD5 implementation in their ROM. This PR adds linkage to them and a safe, consistent API over them that mimics the MD5 crate and can act as a drop-in replacement.

I checked the updated examples on a physical ESP32-C3 and simulated ESP32-S2. It should work on the others as the linker locations were pulled from ESP-IDF.

MD5 is needed in order to start reading the ESP32 partition tables.

Copy link
Contributor

@bjoernQ bjoernQ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks for your contribution

@bjoernQ bjoernQ merged commit a562863 into esp-rs:main Jun 26, 2023
MabezDev pushed a commit that referenced this pull request Jul 12, 2023
* Add ROM MD5 definitions in linker and devices

* Add initial MD5 support

* Implement traits and add comments to MD5 module

* Add MD5 example to ESP32-C3

* Test MD5 context on the quick brown fox

* Implemenr From<Context> for Digest

* Add MD5 to the rest of the examples

* Add docs for MD5

* Remove #[repr(transparent)] from md5::Digest

* Update CHANGELOG.md
playfulFence pushed a commit to playfulFence/esp-hal that referenced this pull request Sep 26, 2023
* Add ROM MD5 definitions in linker and devices

* Add initial MD5 support

* Implement traits and add comments to MD5 module

* Add MD5 example to ESP32-C3

* Test MD5 context on the quick brown fox

* Implemenr From<Context> for Digest

* Add MD5 to the rest of the examples

* Add docs for MD5

* Remove #[repr(transparent)] from md5::Digest

* Update CHANGELOG.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants