Fix key export handling in crypto provider

Running PSA arch tests has identified a bug in the error handling
for the export key operation.  This commit fixes the error
handling.

Signed-off-by: Julian Hall <julian.hall@arm.com>
Change-Id: I8a6d10ebe7b50a8c02a6ed50a4fcb56e2f5708ad
1 file changed