Move test driver hash function declarations to software driver
Signed-off-by: Steven Cooreman <steven.cooreman@silabs.com>
diff --git a/library/psa_crypto_hash.h b/library/psa_crypto_hash.h
index 57dadc3..ed528ab 100644
--- a/library/psa_crypto_hash.h
+++ b/library/psa_crypto_hash.h
@@ -271,4 +271,45 @@
psa_status_t mbedtls_psa_hash_abort(
mbedtls_psa_hash_operation_t *operation );
+/*
+ * BEYOND THIS POINT, TEST DRIVER ENTRY POINTS ONLY.
+ */
+
+#if defined(PSA_CRYPTO_DRIVER_TEST)
+typedef struct {
+ mbedtls_psa_hash_operation_t operation;
+} test_transparent_hash_operation_t;
+
+psa_status_t test_transparent_hash_compute(
+ psa_algorithm_t alg,
+ const uint8_t *input,
+ size_t input_length,
+ uint8_t *hash,
+ size_t hash_size,
+ size_t *hash_length);
+
+psa_status_t test_transparent_hash_setup(
+ test_transparent_hash_operation_t *operation,
+ psa_algorithm_t alg );
+
+psa_status_t test_transparent_hash_clone(
+ const test_transparent_hash_operation_t *source_operation,
+ test_transparent_hash_operation_t *target_operation );
+
+psa_status_t test_transparent_hash_update(
+ test_transparent_hash_operation_t *operation,
+ const uint8_t *input,
+ size_t input_length );
+
+psa_status_t test_transparent_hash_finish(
+ test_transparent_hash_operation_t *operation,
+ uint8_t *hash,
+ size_t hash_size,
+ size_t *hash_length );
+
+psa_status_t test_transparent_hash_abort(
+ test_transparent_hash_operation_t *operation );
+
+#endif /* PSA_CRYPTO_DRIVER_TEST */
+
#endif /* PSA_CRYPTO_HASH_H */