Add partial GCM tests to fipsalgtest.pl
authorDr. Stephen Henson <steve@openssl.org>
Wed, 20 Apr 2011 15:06:44 +0000 (15:06 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Wed, 20 Apr 2011 15:06:44 +0000 (15:06 +0000)
fips/fipsalgtest.pl

index ce17e1e..6c4c3b4 100644 (file)
@@ -290,6 +290,18 @@ my @fips_aes_ccm_test_list = (
 
 );
 
+my @fips_aes_gcm_test_list = (
+
+    # AES GCM tests
+
+    "AES GCM",
+
+    [ "gcmDecrypt128",  "fips_gcmtest -decrypt" ],
+    [ "gcmDecrypt192",  "fips_gcmtest -decrypt" ],
+    [ "gcmDecrypt256",  "fips_gcmtest -decrypt" ],
+
+);
+
 # Triple DES tests
 
 my @fips_des3_test_list = (
@@ -457,6 +469,7 @@ my %fips_enabled = (
     "des3-cfb1" => 0,
     drbg       => 0,
     ccm                => 0,
+    gcm                => 0,
     dh         => 0,
     ecdh       => 0,
 );
@@ -546,6 +559,7 @@ push @fips_test_list, @fips_des3_test_list      if $fips_enabled{"des3"};
 push @fips_test_list, @fips_des3_cfb1_test_list if $fips_enabled{"des3-cfb1"};
 push @fips_test_list, @fips_drbg_test_list     if $fips_enabled{"drbg"};
 push @fips_test_list, @fips_aes_ccm_test_list  if $fips_enabled{"aes-ccm"};
+push @fips_test_list, @fips_aes_gcm_test_list  if $fips_enabled{"aes-gcm"};
 push @fips_test_list, @fips_dh_test_list       if $fips_enabled{"dh"};
 push @fips_test_list, @fips_ecdh_test_list     if $fips_enabled{"ecdh"};