diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-10-14 09:51:29 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-10-14 09:51:29 +0000 |
commit | 561a3a54710db9698e3405b496808af43682931c (patch) | |
tree | 7b6733fd4499b101b31899ae835bd1f45e3e645b /src/util/test_crypto_ksk.c | |
parent | f7de546a5f6027642d1145163bc91b5792babd11 (diff) | |
download | gnunet-561a3a54710db9698e3405b496808af43682931c.tar.gz gnunet-561a3a54710db9698e3405b496808af43682931c.zip |
stuff
Diffstat (limited to 'src/util/test_crypto_ksk.c')
-rw-r--r-- | src/util/test_crypto_ksk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/test_crypto_ksk.c b/src/util/test_crypto_ksk.c index 96e6fee5c..1e3b06f6a 100644 --- a/src/util/test_crypto_ksk.c +++ b/src/util/test_crypto_ksk.c | |||
@@ -38,7 +38,7 @@ | |||
38 | static int | 38 | static int |
39 | testCorrectKey () | 39 | testCorrectKey () |
40 | { | 40 | { |
41 | const char *want = "010601000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b73c215f7a5e6b09bec55713c901786c09324a150980e014bdb0d04426934929c3b4971a9711af5455536cd6eeb8bfa004ee904972a737455f53c752987d8e5e1396e5e5a4ed694fb1d45e15ae68d8756e525cbaf6ab6ed0269ac402f2a6b8a73627e3797496b43a851271cb7d7b60b6acf4324ba72be5cafcef98dca8d71d1b01010000"; | 41 | const char *want = "010601000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b73c215f7a5e6b09bec55713c901786c09324a150980e014bdb0d04426934929c3b4971a9711af5455536cd6eeb8bfa004ee904972a737455f53c752987d8c82b755bc02882b44950c4acdc1672ba74c3b94d81a4c1ea3d74e7700ae5594c3a4f3c559e4bff2df6844fac302e4b66175e14dc8bad3ce44281d2fec1a1abef06301010000"; |
42 | GNUNET_HashCode in; | 42 | GNUNET_HashCode in; |
43 | struct GNUNET_CRYPTO_RsaPrivateKey *hostkey; | 43 | struct GNUNET_CRYPTO_RsaPrivateKey *hostkey; |
44 | struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded pkey; | 44 | struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded pkey; |
@@ -57,7 +57,7 @@ testCorrectKey () | |||
57 | GNUNET_CRYPTO_rsa_key_free (hostkey); | 57 | GNUNET_CRYPTO_rsa_key_free (hostkey); |
58 | #if 1 | 58 | #if 1 |
59 | for (i=0;i<sizeof(struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded);i++) | 59 | for (i=0;i<sizeof(struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded);i++) |
60 | printf(out, sizeof (out), "%02x", ((unsigned char*) &pkey)[i]); | 60 | printf("%02x", ((unsigned char*) &pkey)[i]); |
61 | printf ("\n"); | 61 | printf ("\n"); |
62 | #endif | 62 | #endif |
63 | for (i=0;i<sizeof(struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded);i++) | 63 | for (i=0;i<sizeof(struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded);i++) |