add basic aescgm cipher suite tests

This commit is contained in:
toddouska
2012-08-08 15:22:41 -07:00
parent 08ff33894f
commit 6defed64cd
3 changed files with 29 additions and 1 deletions

View File

@@ -21,4 +21,5 @@ EXTRA_DIST += tests/test.conf \
tests/test-hc128.conf \ tests/test-hc128.conf \
tests/test-psk.conf \ tests/test-psk.conf \
tests/test-ntru.conf \ tests/test-ntru.conf \
tests/test-ecc.conf tests/test-ecc.conf \
tests/test-aesgcm.conf

View File

@@ -291,6 +291,17 @@ int SuiteTest(void)
} }
#endif #endif
#ifdef HAVE_AESGCM
/* add ecc extra suites */
strcpy(argv0[1], "tests/test-aesgcm.conf");
printf("starting aesgcm extra cipher suite tests\n");
test_harness(&args);
if (args.return_code != 0) {
printf("error from script %d\n", args.return_code);
exit(EXIT_FAILURE);
}
#endif
printf(" End Cipher Suite Tests\n"); printf(" End Cipher Suite Tests\n");
return args.return_code; return args.return_code;

16
tests/test-aesgcm.conf Normal file
View File

@@ -0,0 +1,16 @@
# server TLSv1.2 RSA-AES128-GCM-SHA256
-v 3
-l AES128-GCM-SHA256
# client TLSv1.2 RSA-AES128-GCM-SHA256
-v 3
-l AES128-GCM-SHA256
# server TLSv1.2 RSA-AES256-GCM-SHA384
-v 3
-l AES256-GCM-SHA384
# client TLSv1.2 RSA-AES256-GCM-SHA384
-v 3
-l AES256-GCM-SHA384