Now GMAC is fixed remove workaround.
authorDr. Stephen Henson <steve@openssl.org>
Wed, 16 Jan 2013 14:20:01 +0000 (14:20 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Wed, 16 Jan 2013 14:20:01 +0000 (14:20 +0000)
fips/aes/fips_gcmtest.c

index 4000e0763f3337cb11c98029a39c58ed1faebe13..30e4bcc0f4f083241bb345f2e640017b1f7c085f 100644 (file)
@@ -208,8 +208,6 @@ static void gcmtest(FILE *in, FILE *out, int encrypt)
                                ct = OPENSSL_malloc(ptlen);
                                rv = FIPS_cipher(&ctx, ct, pt, ptlen);
                                }
-                       else
-                               FIPS_cipher(&ctx, iv, iv, 0);
                        FIPS_cipher(&ctx, NULL, NULL, 0);
                        FIPS_cipher_ctx_ctrl(&ctx, EVP_CTRL_GCM_GET_TAG,
                                                                taglen, tag);   
@@ -244,8 +242,6 @@ static void gcmtest(FILE *in, FILE *out, int encrypt)
                                pt = OPENSSL_malloc(ptlen);
                                rv = FIPS_cipher(&ctx, pt, ct, ptlen);
                                }
-                       else
-                               FIPS_cipher(&ctx, iv, iv, 0);
                        rv = FIPS_cipher(&ctx, NULL, NULL, 0);
                        if (rv < 0)
                                fprintf(out, "FAIL" RESP_EOL);