From 867c1257c40d8b6c2a887576f8c367bcf3df3c79 Mon Sep 17 00:00:00 2001 From: Miloslav Trmač Date: Mon, 15 Nov 2010 21:33:22 +0100 Subject: Add comments to tests. --- tests/digests.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/digests.c') diff --git a/tests/digests.c b/tests/digests.c index 19e54cd..e771d12 100644 --- a/tests/digests.c +++ b/tests/digests.c @@ -107,6 +107,7 @@ main (void) void *large; CK_RV res; + /* Test standalone digests. */ for (i = 0; i < G_N_ELEMENTS (tvs); i++) { dest_size = sizeof (dest); @@ -117,6 +118,7 @@ main (void) assert (memcmp (dest, tvs[i].output, dest_size) == 0); } + /* Test init + update + final. */ for (i = 0; i < G_N_ELEMENTS (tvs); i++) { res = ncr_digest_alloc (&sess, tvs[i].mech); @@ -139,6 +141,7 @@ main (void) assert (res == CKR_OK); } + /* Test session cloning. */ for (i = 0; i < G_N_ELEMENTS (tvs); i++) { res = ncr_digest_alloc (&sess, tvs[i].mech); @@ -182,6 +185,7 @@ main (void) assert (res == CKR_OK); } + /* Test init + digest. */ for (i = 0; i < G_N_ELEMENTS (tvs); i++) { res = ncr_digest_alloc (&sess, tvs[i].mech); @@ -202,6 +206,7 @@ main (void) assert (res == CKR_OK); } + /* Test very large input. */ res = ncr_digest_alloc (&sess, CKM_SHA256); assert (res == CKR_OK); res = ncr_digest_init (sess); -- cgit