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)
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))