Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions wolfcrypt/src/port/caam/wolfcaam_fsl_nxp.c
Original file line number Diff line number Diff line change
Expand Up @@ -849,8 +849,8 @@ int SynchronousSendRequest(int type, unsigned int args[4], CAAM_BUFFER *buf,
#endif

default:
WOLFSSL_MSG("Unknown/unsupported type");
return -1;
WOLFSSL_MSG("Unknown/unsupported type. Returning unavailable");
return CRYPTOCB_UNAVAILABLE;
}

if (ret != 0) {
Expand Down
5 changes: 5 additions & 0 deletions wolfcrypt/src/port/caam/wolfcaam_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,11 @@ int wc_caamAddAndWait(CAAM_BUFFER* buf, int sz, word32 arg[4], word32 type)
return RAN_BLOCK_E;
}

if (ret == CRYPTOCB_UNAVAILABLE) {
WOLFSSL_MSG("Driver does not support requested operation");
return ret;
}

if (ret == ResourceNotAvailable) {
WOLFSSL_MSG("Waiting on CAAM driver");
return WC_HW_WAIT_E;
Expand Down
Loading