Merge pull request #8543 from JacobBarthelmeh/fsl_caam

handle unsupported fsl algo
This commit is contained in:
Daniel Pouzzner
2025-09-30 20:33:34 -05:00
committed by GitHub
2 changed files with 7 additions and 2 deletions

View File

@@ -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) {

View File

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