ThePassionate commented on issue #3142:
URL: https://github.com/apache/nuttx-apps/issues/3142#issuecomment-3126186498

   > > [@yamt](https://github.com/yamt) 
[#3144](https://github.com/apache/nuttx-apps/pull/3144) fix this issue and 
aligned error value with mbedtls test suits
   > 
   > thank you.
   > 
   > > firstly, with introduce of shax_update in header file like
   > > 
[https://github.com/Mbed-TLS/mbedtls/blob/v3.6.4/include/mbedtls/sha1.h#L130](url)
   > > There is no strict rule for the return value of this function.
   > 
   > while there might not be strict rules, i guess we should avoid confusing 
users. negative nuttx errno values badly conflict with MBEDTLS_ERR_xxx values 
and confuses mbedtls_strerror. for example, -EXDEV == -18 == 
MBEDTLS_ERR_GCM_AUTH_FAILED.
   
   I get it. Let me map these to mbedtls error


-- 
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: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to