-
Notifications
You must be signed in to change notification settings - Fork 655
Closed
Labels
Type: BugSomething isn't workingSomething isn't working
Description
Description / Steps to reproduce the issue
our mbedtls alt functions (eg.
nuttx-apps/crypto/mbedtls/source/sha1_alt.c
Lines 54 to 63 in 72668d7
int mbedtls_sha1_update(FAR mbedtls_sha1_context *ctx, | |
FAR const unsigned char *input, | |
size_t ilen) | |
{ | |
ctx->crypt.op = COP_ENCRYPT; | |
ctx->crypt.flags |= COP_FLAG_UPDATE; | |
ctx->crypt.src = (caddr_t)input; | |
ctx->crypt.len = ilen; | |
return cryptodev_crypt(ctx); | |
} |
return negative nuttx errno, while they should return mbedtls error code like MBEDTLS_ERR_SHA1_BAD_INPUT_DATA.
On which OS does this issue occur?
[OS: Mac]
What is the version of your OS?
macOS 15.5
NuttX Version
master
Issue Architecture
[Arch: xtensa]
Issue Area
[Area: Crypto]
Host information
No response
Verification
- I have verified before submitting the report.
Metadata
Metadata
Assignees
Labels
Type: BugSomething isn't workingSomething isn't working