diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-09-30 19:24:12 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-09-30 19:24:12 +0000 |
commit | 427dd6f998fb1fde515a3b5c800f9f6d308197b2 (patch) | |
tree | 8cbe9bf7b43fafae07ed1a25753ccccdbe430148 /src/include/gnunet_crypto_lib.h | |
parent | b18fa7b1e7fcb4d48e2ef314a7d822ccddd8bd60 (diff) | |
download | gnunet-427dd6f998fb1fde515a3b5c800f9f6d308197b2.tar.gz gnunet-427dd6f998fb1fde515a3b5c800f9f6d308197b2.zip |
-towards addressing #3047, note this causes the code to FTBFS
Diffstat (limited to 'src/include/gnunet_crypto_lib.h')
-rw-r--r-- | src/include/gnunet_crypto_lib.h | 31 |
1 files changed, 30 insertions, 1 deletions
diff --git a/src/include/gnunet_crypto_lib.h b/src/include/gnunet_crypto_lib.h index 1d000c29a..a0935363b 100644 --- a/src/include/gnunet_crypto_lib.h +++ b/src/include/gnunet_crypto_lib.h | |||
@@ -43,11 +43,30 @@ extern "C" | |||
43 | #endif | 43 | #endif |
44 | #endif | 44 | #endif |
45 | 45 | ||
46 | /** | ||
47 | * @brief A 512-bit hashcode | ||
48 | */ | ||
49 | struct GNUNET_HashCode; | ||
50 | |||
51 | /** | ||
52 | * The identity of the host (wraps the signing key of the peer). | ||
53 | */ | ||
54 | struct GNUNET_PeerIdentity; | ||
55 | |||
46 | #include "gnunet_common.h" | 56 | #include "gnunet_common.h" |
47 | #include "gnunet_scheduler_lib.h" | 57 | #include "gnunet_scheduler_lib.h" |
48 | 58 | ||
49 | 59 | ||
50 | /** | 60 | /** |
61 | * @brief A 512-bit hashcode | ||
62 | */ | ||
63 | struct GNUNET_HashCode | ||
64 | { | ||
65 | uint32_t bits[512 / 8 / sizeof (uint32_t)]; /* = 16 */ | ||
66 | }; | ||
67 | |||
68 | |||
69 | /** | ||
51 | * Maximum length of an ECC signature. | 70 | * Maximum length of an ECC signature. |
52 | * Note: round up to multiple of 8 minus 2 for alignment. | 71 | * Note: round up to multiple of 8 minus 2 for alignment. |
53 | */ | 72 | */ |
@@ -170,6 +189,16 @@ struct GNUNET_CRYPTO_EccPublicSignKey | |||
170 | }; | 189 | }; |
171 | 190 | ||
172 | 191 | ||
192 | |||
193 | /** | ||
194 | * The identity of the host (wraps the signing key of the peer). | ||
195 | */ | ||
196 | struct GNUNET_PeerIdentity | ||
197 | { | ||
198 | struct GNUNET_CRYPTO_EccPublicSignKey public_key; | ||
199 | }; | ||
200 | |||
201 | |||
173 | /** | 202 | /** |
174 | * Public ECC key (always for NIST P-521) encoded in a format suitable | 203 | * Public ECC key (always for NIST P-521) encoded in a format suitable |
175 | * for network transmission and encryption (ECDH). | 204 | * for network transmission and encryption (ECDH). |
@@ -556,7 +585,7 @@ GNUNET_CRYPTO_hash_file_cancel (struct GNUNET_CRYPTO_FileHashContext *fhc); | |||
556 | */ | 585 | */ |
557 | void | 586 | void |
558 | GNUNET_CRYPTO_hash_create_random (enum GNUNET_CRYPTO_Quality mode, | 587 | GNUNET_CRYPTO_hash_create_random (enum GNUNET_CRYPTO_Quality mode, |
559 | struct GNUNET_HashCode * result); | 588 | struct GNUNET_HashCode *result); |
560 | 589 | ||
561 | 590 | ||
562 | /** | 591 | /** |