summaryrefslogtreecommitdiffstats
path: root/tests/digests.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/digests.c')
-rw-r--r--tests/digests.c5
1 files changed, 5 insertions, 0 deletions
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);