diff options
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gnunet_crypto_lib.h | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/src/include/gnunet_crypto_lib.h b/src/include/gnunet_crypto_lib.h index 9b065e747..b8e38a2a2 100644 --- a/src/include/gnunet_crypto_lib.h +++ b/src/include/gnunet_crypto_lib.h | |||
@@ -212,22 +212,30 @@ struct GNUNET_CRYPTO_EccPrivateKey | |||
212 | struct GNUNET_CRYPTO_AesSessionKey | 212 | struct GNUNET_CRYPTO_AesSessionKey |
213 | { | 213 | { |
214 | /** | 214 | /** |
215 | * Actual key. | 215 | * Actual key for AES. |
216 | */ | 216 | */ |
217 | unsigned char key[GNUNET_CRYPTO_AES_KEY_LENGTH]; | 217 | unsigned char aes_key[GNUNET_CRYPTO_AES_KEY_LENGTH]; |
218 | |||
219 | /** | ||
220 | * Actual key for TwoFish. | ||
221 | */ | ||
222 | unsigned char twofish_key[GNUNET_CRYPTO_AES_KEY_LENGTH]; | ||
218 | 223 | ||
219 | }; | 224 | }; |
225 | |||
220 | GNUNET_NETWORK_STRUCT_END | 226 | GNUNET_NETWORK_STRUCT_END |
221 | 227 | ||
222 | /** | 228 | /** |
223 | * @brief IV for sym cipher | 229 | * @brief IV for sym cipher |
224 | * | 230 | * |
225 | * NOTE: must be smaller (!) in size than the | 231 | * NOTE: must be smaller (!) in size than the |
226 | * struct GNUNET_HashCode. | 232 | * `struct GNUNET_HashCode`. |
227 | */ | 233 | */ |
228 | struct GNUNET_CRYPTO_AesInitializationVector | 234 | struct GNUNET_CRYPTO_AesInitializationVector |
229 | { | 235 | { |
230 | unsigned char iv[GNUNET_CRYPTO_AES_KEY_LENGTH / 2]; | 236 | unsigned char aes_iv[GNUNET_CRYPTO_AES_KEY_LENGTH / 2]; |
237 | |||
238 | unsigned char twofish_iv[GNUNET_CRYPTO_AES_KEY_LENGTH / 2]; | ||
231 | }; | 239 | }; |
232 | 240 | ||
233 | 241 | ||