Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use of sodium.h under new 3.0 #9732

Closed
1 task done
HomeSpan opened this issue May 30, 2024 · 6 comments · Fixed by #9821
Closed
1 task done

Use of sodium.h under new 3.0 #9732

HomeSpan opened this issue May 30, 2024 · 6 comments · Fixed by #9821
Assignees
Labels
Status: In Progress Issue is in progress
Milestone

Comments

@HomeSpan
Copy link

Board

ALL

Device Description

N/A

Hardware Configuration

N/A

Version

v3.0.0

IDE Name

Arduino IDE

Operating System

MAC OS 14

Flash frequency

N/A

PSRAM enabled

no

Upload speed

N/A

Description

I understand that Espressif has moved libsodium to an optional component when transitioning from IDF 4 to IDF 5. Since Arduino-ESP32 version 3 uses IDF5, the sodium library is no longer available and #include <sodium.h> fails when added to an Arduino sketch. Is there a recommended method of incorporating sodium into an Arduino sketch when using the new Arduino-ESP32 version 3? The Espressif web site only includes information for doing so when using the IDF directly.

Sketch

N/A

Debug Message

N/A

Other Steps to Reproduce

No response

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.
@me-no-dev
Copy link
Member

That would require custom libs to be built with sodium in them. @lucasssvaz can help with instructions on how to do that easily

@lucasssvaz
Copy link
Collaborator

You can either use Arduino as a component or Rebuild the libs with the necessary configs.

@VojtechBartoska
Copy link
Collaborator

closing as answered, if needed you can reopen the ticket.

@VojtechBartoska VojtechBartoska closed this as not planned Won't fix, can't repro, duplicate, stale Jun 3, 2024
@HomeSpan
Copy link
Author

HomeSpan commented Jun 9, 2024

To make sure I fully understand, if I create my own version of the library (with lib sodium) does this result in a custom Board Manager. In other words, if anyone wants to use the library within the Arduino IDE, do they use the Board Manager functionality and point to where I'm hosting the custom library?

Also, any reason you did not include sodium in 3.0? Are there alternatives to the crypto commands that are built into a different library that is included in 3.0?

@me-no-dev
Copy link
Member

any reason you did not include sodium in 3.0?

We do not have a measure of how much given IDF component is used in Arduino. Sodium was part of IDF prior to v5, so it came for free. If we get enough requests, we can consider adding it to the default libs.

if anyone wants to use the library within the Arduino IDE, do they use the Board Manager functionality and point to where I'm hosting the custom library?

You would need to create and host your own board manager json, with the libs you built yourself

@Nezaemmy
Copy link

Nezaemmy commented Jun 11, 2024

@me-no-dev if no other crypto commands library built in v3 sodium is great library to get on v3

@VojtechBartoska VojtechBartoska added Status: In Progress Issue is in progress and removed Type: Question Only question Status: Awaiting triage Issue is waiting for triage labels Jun 12, 2024
@VojtechBartoska VojtechBartoska added this to the 3.0.2 milestone Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: In Progress Issue is in progress
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants