diff options
author | Rob Austein <sra@hactrn.net> | 2016-03-09 21:20:06 -0500 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2016-03-09 21:20:06 -0500 |
commit | 74aa82f1b07e0005a7dae60d89173f2f5243be52 (patch) | |
tree | 0cc4f63638b091e51dbe31102d70c55d811b3252 /tests/test-hash.c | |
parent | 8db1d753745bb7b253cf969ff2fb32464b601bf5 (diff) |
Tweak handling of byte swapping in software hash cores to get rid of
some unnecessary data copying.
Diffstat (limited to 'tests/test-hash.c')
-rw-r--r-- | tests/test-hash.c | 6 |
1 files changed, 0 insertions, 6 deletions
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; |