diff options
author | Miloslav Trmač <mitr@redhat.com> | 2010-11-15 21:33:22 +0100 |
---|---|---|
committer | Miloslav Trmač <mitr@redhat.com> | 2010-11-15 21:33:22 +0100 |
commit | 867c1257c40d8b6c2a887576f8c367bcf3df3c79 (patch) | |
tree | 0b5275cd98a7a7c34223c2883e47cc79751103b8 /tests/symm_ciphers.c | |
parent | 9d339f288eda10e5334bbf4ccdfd068eaee95c0e (diff) | |
download | ncrypto-867c1257c40d8b6c2a887576f8c367bcf3df3c79.tar.gz ncrypto-867c1257c40d8b6c2a887576f8c367bcf3df3c79.tar.xz ncrypto-867c1257c40d8b6c2a887576f8c367bcf3df3c79.zip |
Add comments to tests.
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); |