diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-12-13 13:25:30 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-01-17 12:43:20 -0500 |
commit | c3931714038e422972b80a893db0807d4d8ae937 (patch) | |
tree | cc917054ae20de7d31a78780a41b14e69e4e7576 /src/test/test_crypto.c | |
parent | 77712a5fa29f135e0a79ed9122f28c5dcb902e77 (diff) | |
download | tor-c3931714038e422972b80a893db0807d4d8ae937.tar.gz tor-c3931714038e422972b80a893db0807d4d8ae937.zip |
Use openssl's version of sha3 when available.
Part of 28837.
Diffstat (limited to 'src/test/test_crypto.c')
-rw-r--r-- | src/test/test_crypto.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/test_crypto.c b/src/test/test_crypto.c index fa79f4cc47..ec0c3cae64 100644 --- a/src/test/test_crypto.c +++ b/src/test/test_crypto.c @@ -1178,8 +1178,9 @@ test_crypto_sha3_xof(void *arg) tt_assert(xof); for (size_t i = 0; i < sizeof(msg); i++) crypto_xof_add_bytes(xof, msg + i, 1); - for (size_t i = 0; i < sizeof(out); i++) + for (size_t i = 0; i < sizeof(out); i++) { crypto_xof_squeeze_bytes(xof, out + i, 1); + } test_memeq_hex(out, squeezed_hex); done: |