From a0e78805fec2d35f21d1a2a1341dc640140aebb6 Mon Sep 17 00:00:00 2001 From: Lukasz Pawelczyk Date: Tue, 28 Jun 2016 16:33:06 +0200 Subject: [PATCH] YACA: Drop the digest context reuse testing Change-Id: I541fbc84a033270d0b30d22870f886846467b4be --- src/yaca/yaca-test-digest.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/yaca/yaca-test-digest.cpp b/src/yaca/yaca-test-digest.cpp index 9b924bd..992e1c6 100644 --- a/src/yaca/yaca-test-digest.cpp +++ b/src/yaca/yaca-test-digest.cpp @@ -55,12 +55,7 @@ void check_test_vector(yaca_digest_algorithm_e algo, out_len = get_output_length(ctx_ptr); - /* calculate digest of random message */ - Buffer tmp(out_len); - YACA_SUCCESS(yaca_digest_update(ctx_ptr.get(), DATA.data(), DATA.size())); - YACA_SUCCESS(yaca_digest_finalize(ctx_ptr.get(), tmp.data(), &out_len)); - - /* check the test vector (context reuse) */ + /* check the test vector */ if (input.size() > 0) { for (size_t i = 0; i < repeats; i++) YACA_SUCCESS(yaca_digest_update(ctx_ptr.get(), -- 2.7.4