aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_crypto_lib.h
diff options
context:
space:
mode:
authort3sserakt <t3ss@posteo.de>2020-07-17 14:26:45 +0200
committert3sserakt <t3ss@posteo.de>2020-07-17 14:26:45 +0200
commit0c9911d73744da31776f98019ff1460032f2c82b (patch)
tree6746a66f0467b5115d7c23547b563aab3e119163 /src/include/gnunet_crypto_lib.h
parent686a873aed44e0dff36f0d52c465af2e5efb5ab2 (diff)
downloadgnunet-0c9911d73744da31776f98019ff1460032f2c82b.tar.gz
gnunet-0c9911d73744da31776f98019ff1460032f2c82b.zip
TNG: Implemented 5530: add replay protection to TCP communicator. Added monotime value checks
Diffstat (limited to 'src/include/gnunet_crypto_lib.h')
-rw-r--r--src/include/gnunet_crypto_lib.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/include/gnunet_crypto_lib.h b/src/include/gnunet_crypto_lib.h
index 320701643..c1b0b3b1b 100644
--- a/src/include/gnunet_crypto_lib.h
+++ b/src/include/gnunet_crypto_lib.h
@@ -289,6 +289,17 @@ struct GNUNET_CRYPTO_SymmetricSessionKey
289 unsigned char twofish_key[GNUNET_CRYPTO_AES_KEY_LENGTH]; 289 unsigned char twofish_key[GNUNET_CRYPTO_AES_KEY_LENGTH];
290}; 290};
291 291
292/**
293 * Type of a nonce used for challenges.
294 */
295struct ChallengeNonceP
296{
297 /**
298 * The value of the nonce. Note that this is NOT a hash.
299 */
300 struct GNUNET_ShortHashCode value;
301};
302
292GNUNET_NETWORK_STRUCT_END 303GNUNET_NETWORK_STRUCT_END
293 304
294/** 305/**