]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
scripts: Fixed NIST KAT scripts
authorAndreas Steffen <andreas.steffen@strongswan.org>
Wed, 2 Dec 2020 16:27:08 +0000 (17:27 +0100)
committerTobias Brunner <tobias@strongswan.org>
Wed, 22 Mar 2023 10:35:11 +0000 (11:35 +0100)
scripts/nist_kem_kat.c
scripts/nist_sig_kat.c

index 82e51786cf3ca96a128cbe6b215e948c0128c2fc..e80436132c4e1e9dc5d1052e86bde86fef22ddea 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2019 Andreas Steffen
+ * Copyright (C) 2019-2020 Andreas Steffen
  *
  * Copyright (C) secunet Security Networks AG
  *
@@ -140,9 +140,9 @@ int main(int argc, char *argv[])
                        {
                                break;
                        }
+                       fprintf(out, "/** count = %.*s */\n", value_len, value);
                        fprintf(out, "{\n");
                        fprintf(out, "\t.method = %s,\n", method);
-                       fprintf(out, "\t.count = %.*s,\n", value_len, value);
                        count--;
                }
                else
index 2d1f39f53efed88c019a323336c5fb318c1e12ef..8552ca32c68327c7a44b7fc0a27cb303838864ee 100644 (file)
@@ -57,7 +57,7 @@ int main(int argc, char *argv[])
                        {"out",         required_argument,      NULL,   'o' },
                        {0,0,0,0 },
                };
-               switch (getopt_long(argc, argv, "h:m:c:i:o:", long_opts, NULL))
+               switch (getopt_long(argc, argv, "h:t:c:i:o:", long_opts, NULL))
                {
                        case EOF:
                                break;