Correct some return codes
diff --git a/library/psa_crypto.c b/library/psa_crypto.c
index 81da8ce..c93da95 100644
--- a/library/psa_crypto.c
+++ b/library/psa_crypto.c
@@ -588,7 +588,7 @@
case MBEDTLS_MD_RIPEMD160:
return( PSA_ALG_RIPEMD160 );
default:
- return( MBEDTLS_MD_NOT_SUPPORTED );
+ return( 0 );
}
}
#endif
@@ -1039,7 +1039,7 @@
return( mbedtls_to_psa_error( ret ) );
}
operation->key_set = 1;
- return( 0 );
+ return( PSA_SUCCESS );
}
psa_status_t psa_mac_update( psa_mac_operation_t *operation,