diff options
Diffstat (limited to 'tests/symm_ciphers.c')
-rw-r--r-- | tests/symm_ciphers.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/symm_ciphers.c b/tests/symm_ciphers.c index 2c2cd92..892cfed 100644 --- a/tests/symm_ciphers.c +++ b/tests/symm_ciphers.c @@ -108,6 +108,7 @@ main (void) void *large_src, *large_dest; CK_RV res; + /* Test init + update + final. */ for (i = 0; i < G_N_ELEMENTS (tvs); i++) { res = ncr_symm_cipher_alloc (&sess, tvs[i].mech); @@ -163,6 +164,7 @@ main (void) assert (res == CKR_OK); } + /* Test init + {en,de}crypt. */ for (i = 0; i < G_N_ELEMENTS (tvs); i++) { res = ncr_symm_cipher_alloc (&sess, tvs[i].mech); @@ -204,6 +206,7 @@ main (void) assert (res == CKR_OK); } + /* Test changing of the IV. */ for (i = 0; i < G_N_ELEMENTS (tvs); i++) { res = ncr_symm_cipher_alloc (&sess, tvs[i].mech); @@ -260,6 +263,7 @@ main (void) assert (res == CKR_OK); } + /* Test init + update + final with a random key. */ for (i = 0; i < G_N_ELEMENTS (tvs); i++) { res = ncr_symm_cipher_alloc (&sess, tvs[i].mech); @@ -313,6 +317,7 @@ main (void) assert (res == CKR_OK); } + /* Test init + {en,de}crypt with a random key. */ for (i = 0; i < G_N_ELEMENTS (tvs); i++) { res = ncr_symm_cipher_alloc (&sess, tvs[i].mech); @@ -353,6 +358,7 @@ main (void) assert (res == CKR_OK); } + /* Test very large input. */ res = ncr_symm_cipher_alloc (&sess, CKM_AES_CBC); assert (res == CKR_OK); |