]> pd.if.org Git - zpackage/blobdiff - crypto/libeddsa/sign.c
cleanup sign tests
[zpackage] / crypto / libeddsa / sign.c
index 246c9322e8baeb51c4dd32353ac0e4d68f8e35bf..723c1f06b45cb9811614a214d1fc304f955a6f18 100644 (file)
@@ -42,7 +42,8 @@
 #define SIGN 2
 #define GENKEY 3
 #define EXTRACT 4
-#define PUBKEY 5
+
+//#define MARK do { fprintf(stderr, "%s %s:%d\n", __FILE__, __func__, __LINE__); } while (0)
 
 static void hexdump(void *src, size_t len) {
        unsigned char *b = src;
@@ -362,7 +363,7 @@ int main(int ac, char *av[]) {
                //hexdump(pub, sizeof pub);
        }
 
-       if (mode == PUBKEY) {
+       if (mode == EXTRACT) {
                /* want to print the pubkey only */
                hexdump(pub, sizeof pub);
                exit(0);