YACA: Drop the digest context reuse testing
authorLukasz Pawelczyk <l.pawelczyk@samsung.com>
Tue, 28 Jun 2016 14:33:06 +0000 (16:33 +0200)
committerKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Wed, 29 Jun 2016 10:37:05 +0000 (12:37 +0200)
Change-Id: I541fbc84a033270d0b30d22870f886846467b4be

src/yaca/yaca-test-digest.cpp

index 9b924bd..992e1c6 100644 (file)
@@ -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(),