]> pd.if.org Git - zpackage/blobdiff - crypto/libeddsa/sign.c
add test vectors for zpm-sign
[zpackage] / crypto / libeddsa / sign.c
index 246c9322e8baeb51c4dd32353ac0e4d68f8e35bf..c1fddc8c579e7b41fe4fe51394daf8ddb0012cf3 100644 (file)
@@ -42,7 +42,6 @@
 #define SIGN 2
 #define GENKEY 3
 #define EXTRACT 4
-#define PUBKEY 5
 
 static void hexdump(void *src, size_t len) {
        unsigned char *b = src;
@@ -362,7 +361,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);