diff options
Diffstat (limited to 'src/gnsrecord/gnsrecord_crypto.h')
-rw-r--r-- | src/gnsrecord/gnsrecord_crypto.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/gnsrecord/gnsrecord_crypto.h b/src/gnsrecord/gnsrecord_crypto.h index be762f1b5..79a7e6fb9 100644 --- a/src/gnsrecord/gnsrecord_crypto.h +++ b/src/gnsrecord/gnsrecord_crypto.h | |||
@@ -35,6 +35,26 @@ | |||
35 | #include "gnunet_tun_lib.h" | 35 | #include "gnunet_tun_lib.h" |
36 | 36 | ||
37 | /** | 37 | /** |
38 | * Information we have in an encrypted block with record data (i.e. in the DHT). | ||
39 | */ | ||
40 | struct GNRBlockPS | ||
41 | { | ||
42 | /** | ||
43 | * Number of bytes signed; also specifies the number of bytes | ||
44 | * of encrypted data that follow. | ||
45 | */ | ||
46 | struct GNUNET_CRYPTO_EccSignaturePurpose purpose; | ||
47 | |||
48 | /** | ||
49 | * Expiration time of the block. | ||
50 | */ | ||
51 | struct GNUNET_TIME_AbsoluteNBO expiration_time; | ||
52 | |||
53 | /* followed by encrypted data */ | ||
54 | }; | ||
55 | |||
56 | |||
57 | /** | ||
38 | * Derive session key and iv from label and public key. | 58 | * Derive session key and iv from label and public key. |
39 | * | 59 | * |
40 | * @param iv initialization vector to initialize | 60 | * @param iv initialization vector to initialize |