From 74aa82f1b07e0005a7dae60d89173f2f5243be52 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Wed, 9 Mar 2016 21:20:06 -0500 Subject: Tweak handling of byte swapping in software hash cores to get rid of some unnecessary data copying. --- tests/test-hash.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'tests') diff --git a/tests/test-hash.c b/tests/test-hash.c index 0cceb8a..e8c6a01 100644 --- a/tests/test-hash.c +++ b/tests/test-hash.c @@ -534,9 +534,6 @@ static int _test_hash(const hal_core_t *core, const uint8_t * const result, const size_t result_len, const char * const label) { - if (core == NULL) - return 1; - uint8_t statebuf[512], digest[512]; hal_hash_state_t *state = NULL; hal_error_t err; @@ -586,9 +583,6 @@ static int _test_hmac(const hal_core_t *core, const uint8_t * const result, const size_t result_len, const char * const label) { - if (core == NULL) - return 1; - uint8_t statebuf[1024], digest[512]; hal_hmac_state_t *state = NULL; hal_error_t err; -- cgit v1.2.3