eren-terzioglu commented on PR #18688:
URL: https://github.com/apache/nuttx/pull/18688#issuecomment-4205808687

   Hi,
   
   Thanks for increasing crypto engine support of esp devices. Did you test on 
SHA to be sure is it still working? Seems something had been change on SHA 
struct side. You can use `hash` example.
   
   Also please fix CI error:
   
   ```
   2026-04-08T10:03:45.3710438Z Configuration/Tool: esp32-devkitc/crypto
   2026-04-08T10:03:45.3782781Z 2026-04-08 10:03:45
   2026-04-08T10:03:45.3783693Z 
------------------------------------------------------------------------------------
   2026-04-08T10:03:45.3784560Z   Cleaning...
   2026-04-08T10:03:48.5067555Z   Configuring...
   2026-04-08T10:03:52.1849806Z   Building NuttX...
   2026-04-08T10:04:13.1258975Z chip/esp32_crypto.c: In function 'esp32_pbkdf2':
   2026-04-08T10:04:13.1298781Z ##[error]chip/esp32_crypto.c:408:22: error: 
pointer targets in assignment from 'uint8_t *' {aka 'unsigned char *'} to 
'caddr_t' {aka 'char *'} differ in signedness [-Werror=pointer-sign]
   2026-04-08T10:04:13.1309128Z   408 |   crd_dummy.crd_key  = key_work;
   2026-04-08T10:04:13.1309655Z       |                      ^
   2026-04-08T10:04:13.1311699Z ##[error]chip/esp32_crypto.c:421:42: error: 
pointer targets in passing argument 3 of 'esp32_pbkdf2_rekey' differ in 
signedness [-Werror=pointer-sign]
   2026-04-08T10:04:13.1313845Z   421 |       esp32_pbkdf2_rekey(data, axf, 
crd->crd_key, crd->crd_klen / 8);
   2026-04-08T10:04:13.1314577Z       |                                         
 ^~~~~~~
   2026-04-08T10:04:13.1315113Z       |                                         
 |
   2026-04-08T10:04:13.1315964Z       |                                         
 caddr_t {aka char *}
   2026-04-08T10:04:13.1317211Z chip/esp32_crypto.c:373:47: note: expected 
'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 
'caddr_t' {aka 'char *'}
   2026-04-08T10:04:13.1318395Z   373 |                                const 
uint8_t *key, size_t klen)
   2026-04-08T10:04:13.1319012Z       |                                
~~~~~~~~~~~~~~~^~~
   2026-04-08T10:04:13.1320970Z ##[error]chip/esp32_crypto.c:435:46: error: 
pointer targets in passing argument 3 of 'esp32_pbkdf2_rekey' differ in 
signedness [-Werror=pointer-sign]
   2026-04-08T10:04:13.1323310Z   435 |           esp32_pbkdf2_rekey(data, axf, 
crd->crd_key, crd->crd_klen / 8);
   2026-04-08T10:04:13.1324045Z       |                                         
     ^~~~~~~
   2026-04-08T10:04:13.1324596Z       |                                         
     |
   2026-04-08T10:04:13.1325193Z       |                                         
     caddr_t {aka char *}
   2026-04-08T10:04:13.1326703Z chip/esp32_crypto.c:373:47: note: expected 
'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 
'caddr_t' {aka 'char *'}
   2026-04-08T10:04:13.1327852Z   373 |                                const 
uint8_t *key, size_t klen)
   2026-04-08T10:04:13.1328492Z       |                                
~~~~~~~~~~~~~~~^~~
   2026-04-08T10:04:13.1329080Z cc1: all warnings being treated as errors
   2026-04-08T10:04:13.1345532Z make[1]: *** [Makefile:146: esp32_crypto.o] 
Error 1
   2026-04-08T10:04:42.8839770Z make[1]: Target 'libarch.a' not remade because 
of errors.
   2026-04-08T10:04:42.8845103Z make: *** [tools/LibTargets.mk:170: 
arch/xtensa/src/libarch.a] Error 2
   2026-04-08T10:04:42.8847580Z make: Target 'all' not remade because of errors.
   2026-04-08T10:04:42.8885258Z 
/github/workspace/sources/nuttx/tools/testbuild.sh: line 385: 
/github/workspace/sources/nuttx/../nuttx/nuttx.manifest: No such file or 
directory
   2026-04-08T10:04:42.8938579Z   [1/1] Normalize esp32-devkitc/crypto
   ```


-- 
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