Add implementation of psa_crypto_copy_output()

Signed-off-by: David Horstmann <david.horstmann@arm.com>
diff --git a/library/psa_crypto.c b/library/psa_crypto.c
index a8ef564..d48ad91 100644
--- a/library/psa_crypto.c
+++ b/library/psa_crypto.c
@@ -5535,4 +5535,14 @@
     return PSA_SUCCESS;
 }
 
+psa_status_t psa_crypto_copy_output(const uint8_t *output_copy, size_t output_copy_len,
+                                    uint8_t *output, size_t output_len)
+{
+    if (output_len < output_copy_len) {
+        return PSA_ERROR_BUFFER_TOO_SMALL;
+    }
+    memcpy(output, output_copy, output_copy_len);
+    return PSA_SUCCESS;
+}
+
 #endif /* MBEDTLS_PSA_CRYPTO_C */