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

[Feature Request] Use hardware accelerators for base64 operations #486

Closed
srnae05 opened this issue Apr 6, 2023 · 2 comments
Closed

[Feature Request] Use hardware accelerators for base64 operations #486

srnae05 opened this issue Apr 6, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@srnae05
Copy link

srnae05 commented Apr 6, 2023

The OTA agent uses base64 decoding when downloading a file. This function is a pure software implementation. More often, microcontrollers have hardware accelerators that offer this functionality.

Possible Solution
The structure OtaInterfaces_t can be extended to set the interface for base64 operations. To support microcontrollers that do not have this possibility, the structure member could be set to NULL.
In function where the base64Decode() is called, the structure member is checked. If it is not NULL, use hardware accelerator API, else use the software implementation in the OTA SDK

Alternatives
The base64_decode function in the SDK could be configured as a WEAK function, offering the possibility to the application to implement a strong function (using hardware accelerators).

@johnrhen johnrhen added the enhancement New feature or request label Apr 6, 2023
@johnrhen
Copy link

johnrhen commented Apr 6, 2023

Thanks for the feature request - we'll put it in our input queue and prioritize accordingly.

@n9wxu
Copy link
Member

n9wxu commented Dec 20, 2023

No further development will be performed on this library. See the readme.

@n9wxu n9wxu closed this as completed Dec 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants