]> git.xonotic.org Git - xonotic/d0_blind_id.git/commitdiff
turn off the check debugger
authorRudolf Polzer <divverent@xonotic.org>
Fri, 29 Apr 2011 12:26:26 +0000 (14:26 +0200)
committerRudolf Polzer <divverent@xonotic.org>
Fri, 29 Apr 2011 12:26:26 +0000 (14:26 +0200)
d0_blind_id.c
main.c

index bc610296bd7e5be8eec9e02f6dc197724a2c9d19..a02aaa7c7cde0a8bce248f7ffaac7ed323f7d950 100644 (file)
@@ -97,8 +97,7 @@ struct d0_blind_id_s
        size_t msglen; // message length
 };
 
-#define CHECKDEBUG
-
+//#define CHECKDEBUG
 #ifdef CHECKDEBUG
 #define CHECK(x) do { if(!(x)) { fprintf(stderr, "CHECK FAILED (%s:%d): %s\n", __FILE__, __LINE__, #x); goto fail; } } while(0)
 #define CHECK_ASSIGN(var, value) do { d0_bignum_t *val; val = value; if(!val) { fprintf(stderr, "CHECK FAILED (%s:%d): %s\n", __FILE__, __LINE__, #value); goto fail; } var = val; } while(0)
diff --git a/main.c b/main.c
index 2be45cb16422aa4b1ec680ad21d39a636631f957..bc39797db4b1b58face52be4a098119836279cc4 100644 (file)
--- a/main.c
+++ b/main.c
@@ -83,7 +83,7 @@ int main(int argc, char **argv)
        ctx_other = d0_blind_id_new();
 
        printf("keygen RSA...\n");
-       if(!d0_blind_id_generate_private_key(ctx_self, 256))
+       if(!d0_blind_id_generate_private_key(ctx_self, 1024))
                errx(1, "keygen fail");
        buf2size = sizeof(buf2) - 1;
        if(!d0_blind_id_fingerprint64_public_key(ctx_self, buf2, &buf2size))