Add fips-fingerprint option to dgst.c to use the appropriate FIPS HMAC key.
authorDr. Stephen Henson <steve@openssl.org>
Sun, 23 Dec 2007 13:38:55 +0000 (13:38 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Sun, 23 Dec 2007 13:38:55 +0000 (13:38 +0000)
apps/dgst.c

index 75ddec3e5b1bcf6a4c5b4853c8e4964c8c5e0fe8..f4105c1f1fbf3fd1d3f698779c7963e7e2004295 100644 (file)
@@ -190,6 +190,8 @@ int MAIN(int argc, char **argv)
                        out_bin = 1;
                else if (strcmp(*argv,"-d") == 0)
                        debug=1;
+               else if (!strcmp(*argv,"-fips-fingerprint"))
+                       hmac_key = "etaonrishdlcupfm";
                else if (!strcmp(*argv,"-hmac"))
                        {
                        if (--argc < 1)