diff options
author | Martin Schanzenbach <mschanzenbach@posteo.de> | 2020-10-16 17:44:44 +0200 |
---|---|---|
committer | Martin Schanzenbach <mschanzenbach@posteo.de> | 2020-10-16 17:44:44 +0200 |
commit | 45d490b333ac72b33684c94ac5b48b7925b7ccac (patch) | |
tree | 8516410b61e978c563331ca0bb7061241fdcc9d5 | |
parent | cde9403a6cc6bc03e571c872cdee205bbd838c31 (diff) | |
download | gnunet-45d490b333ac72b33684c94ac5b48b7925b7ccac.tar.gz gnunet-45d490b333ac72b33684c94ac5b48b7925b7ccac.zip |
-formatting tvgs
-rw-r--r-- | src/gnsrecord/gnunet-gnsrecord-tvg.c | 4 | ||||
-rw-r--r-- | src/revocation/gnunet-revocation-tvg.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/gnsrecord/gnunet-gnsrecord-tvg.c b/src/gnsrecord/gnunet-gnsrecord-tvg.c index 6e6f6414c..c29f377bc 100644 --- a/src/gnsrecord/gnunet-gnsrecord-tvg.c +++ b/src/gnsrecord/gnunet-gnsrecord-tvg.c | |||
@@ -104,10 +104,10 @@ run (void *cls, | |||
104 | GNUNET_IDENTITY_key_get_public (&id_priv, | 104 | GNUNET_IDENTITY_key_get_public (&id_priv, |
105 | &id_pub); | 105 | &id_pub); |
106 | fprintf (stdout, "Zone private key (d, little-endian scalar):\n"); | 106 | fprintf (stdout, "Zone private key (d, little-endian scalar):\n"); |
107 | print_bytes (&id_priv, GNUNET_IDENTITY_key_get_length (&id_pub), 0); //FIXME length for privkey? | 107 | print_bytes (&id_priv, GNUNET_IDENTITY_key_get_length (&id_pub), 8); //FIXME length for privkey? |
108 | fprintf (stdout, "\n"); | 108 | fprintf (stdout, "\n"); |
109 | fprintf (stdout, "Zone public key (zk):\n"); | 109 | fprintf (stdout, "Zone public key (zk):\n"); |
110 | print_bytes (&id_pub, GNUNET_IDENTITY_key_get_length (&id_pub), 0); | 110 | print_bytes (&id_pub, GNUNET_IDENTITY_key_get_length (&id_pub), 8); |
111 | fprintf (stdout, "\n"); | 111 | fprintf (stdout, "\n"); |
112 | 112 | ||
113 | pkey_data_p.type = htonl (GNUNET_GNSRECORD_TYPE_PKEY); | 113 | pkey_data_p.type = htonl (GNUNET_GNSRECORD_TYPE_PKEY); |
diff --git a/src/revocation/gnunet-revocation-tvg.c b/src/revocation/gnunet-revocation-tvg.c index 1692472bb..88117dd3f 100644 --- a/src/revocation/gnunet-revocation-tvg.c +++ b/src/revocation/gnunet-revocation-tvg.c | |||
@@ -76,10 +76,10 @@ run (void *cls, | |||
76 | GNUNET_IDENTITY_key_get_public (&id_priv, | 76 | GNUNET_IDENTITY_key_get_public (&id_priv, |
77 | &id_pub); | 77 | &id_pub); |
78 | fprintf (stdout, "Zone private key (d, little-endian scalar):\n"); | 78 | fprintf (stdout, "Zone private key (d, little-endian scalar):\n"); |
79 | print_bytes (&id_priv, sizeof(id_priv), 0); | 79 | print_bytes (&id_priv, sizeof(id_priv), 8); |
80 | fprintf (stdout, "\n"); | 80 | fprintf (stdout, "\n"); |
81 | fprintf (stdout, "Zone public key (zk):\n"); | 81 | fprintf (stdout, "Zone public key (zk):\n"); |
82 | print_bytes (&id_pub, sizeof(id_pub), 0); | 82 | print_bytes (&id_pub, sizeof(id_pub), 8); |
83 | fprintf (stdout, "\n"); | 83 | fprintf (stdout, "\n"); |
84 | pow = GNUNET_malloc (GNUNET_REVOCATION_MAX_PROOF_SIZE); | 84 | pow = GNUNET_malloc (GNUNET_REVOCATION_MAX_PROOF_SIZE); |
85 | GNUNET_REVOCATION_pow_init (&id_priv, | 85 | GNUNET_REVOCATION_pow_init (&id_priv, |