12 Error Handling

Common Error Codes and Descriptions

Error Code Description
PSA_SUCCESS Operation completed successfully
PSA_ERROR_NOT_SUPPORTED Algorithm/key type not enabled in the profile
PSA_ERROR_INVALID_ARGUMENT Invalid function parameters
PSA_ERROR_INSUFFICIENT_MEMORY Memory allocation failed
PSA_ERROR_HARDWARE_FAILURE TRNG or hardware error
PSA_ERROR_INSUFFICIENT_ENTROPY TRNG failed to generate random data
PSA_ERROR_BAD_STATE Library not initialized or invalid state