diff options
author | Martin Schanzenbach <schanzen@gnunet.org> | 2022-02-03 09:25:12 +0100 |
---|---|---|
committer | Martin Schanzenbach <schanzen@gnunet.org> | 2022-02-03 09:25:12 +0100 |
commit | 112ef3796314122465f23215233d8b7dd7a15a0b (patch) | |
tree | 1e9f9c9861a840898613ef822d26fb375c4a56ad /src/gnsrecord/gnsrecord_crypto.h | |
parent | ad6bc2037ffee49f6df1a3ac87fa507581af2365 (diff) | |
download | gnunet-112ef3796314122465f23215233d8b7dd7a15a0b.tar.gz gnunet-112ef3796314122465f23215233d8b7dd7a15a0b.zip |
GNS: Rework GNS block wire format
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 |