PruteanuVlad opened a new pull request, #18608:
URL: https://github.com/apache/nuttx/pull/18608

   ## Summary
   This adds support for PBKDF2 (SHA1 and SHA256) while leveraging the existing 
infrastructure for HMAC.
   I tried to take advantage of the existing HMAC code as much as possible.
   Test app has been added in this PR: 
https://github.com/apache/nuttx-apps/pull/3437
   
   ## Modified files:
   
   boards/xtensa/esp32/esp32-devkitc/configs/crypto/defconfig - enables the 
test app
   crypto/cryptodev.c - treats the new PBKDF2 cases and handles new struct field
   crypto/cryptosoft.c - handles the actual algorithm implementation
   include/crypto/cryptodev.h - new defines for pbkdf2
   
   ## Impact
   
   This allows users to derive keys using PBKDF2.
   
   ##Testing
   
   Development was done using ESP32 DevkitC.
   Building was done on Ubuntu 24.04 VM.
   For testing, I ran the PBKDF2 test from the PR mentioned above.
   ```
   nsh> pbkdf2
   hmac PBKDF2 SHA1 success
   hmac PBKDF2 SHA1 success
   hmac PBKDF2 SHA1 success
   hmac PBKDF2 SHA1 success
   hmac PBKDF2 SHA1 success
   hmac PBKDF2 SHA1 success
   hmac PBKDF2 SHA256 success
   hmac PBKDF2 SHA256 success
   hmac PBKDF2 SHA256 success
   hmac PBKDF2 SHA256 success
   hmac PBKDF2 SHA256 success
   hmac PBKDF2 SHA256 success
   
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to