Skip to content

Commit

Permalink
cracen: Fix error code
Browse files Browse the repository at this point in the history
Map SX_ERR_TOO_MANY_ATTEMPTS to PSA_ERROR_INSUFFICIENT_ENTROPY

Ref: NCSDK-26509

Signed-off-by: Vidar Lillebø <vidar.lillebo@nordicsemi.no>
  • Loading branch information
vili-nordic authored and rlubos committed Jul 22, 2024
1 parent 709a984 commit 4a93e00
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ psa_status_t silex_statuscodes_to_psa(int ret)
return PSA_ERROR_INSUFFICIENT_MEMORY;

case SX_ERR_INSUFFICIENT_ENTROPY:
case SX_ERR_TOO_MANY_ATTEMPTS:
return PSA_ERROR_INSUFFICIENT_ENTROPY;

case SX_ERR_INVALID_CIPHERTEXT:
Expand Down

0 comments on commit 4a93e00

Please sign in to comment.