aboutsummaryrefslogtreecommitdiff
path: root/src/fs/fs_tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/fs_tree.c')
-rw-r--r--src/fs/fs_tree.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fs/fs_tree.c b/src/fs/fs_tree.c
index b9dd894f5..4e0ef8c5b 100644
--- a/src/fs/fs_tree.c
+++ b/src/fs/fs_tree.c
@@ -336,8 +336,8 @@ GNUNET_FS_tree_encoder_next (struct GNUNET_FS_TreeEncoder *te)
336 uint16_t pt_size; 336 uint16_t pt_size;
337 char iob[DBLOCK_SIZE]; 337 char iob[DBLOCK_SIZE];
338 char enc[DBLOCK_SIZE]; 338 char enc[DBLOCK_SIZE];
339 struct GNUNET_CRYPTO_AesSessionKey sk; 339 struct GNUNET_CRYPTO_SymmetricSessionKey sk;
340 struct GNUNET_CRYPTO_AesInitializationVector iv; 340 struct GNUNET_CRYPTO_SymmetricInitializationVector iv;
341 unsigned int off; 341 unsigned int off;
342 342
343 GNUNET_assert (GNUNET_NO == te->in_next); 343 GNUNET_assert (GNUNET_NO == te->in_next);
@@ -383,7 +383,7 @@ GNUNET_FS_tree_encoder_next (struct GNUNET_FS_TreeEncoder *te)
383 mychk = &te->chk_tree[te->current_depth * CHK_PER_INODE + off]; 383 mychk = &te->chk_tree[te->current_depth * CHK_PER_INODE + off];
384 GNUNET_CRYPTO_hash (pt_block, pt_size, &mychk->key); 384 GNUNET_CRYPTO_hash (pt_block, pt_size, &mychk->key);
385 GNUNET_CRYPTO_hash_to_aes_key (&mychk->key, &sk, &iv); 385 GNUNET_CRYPTO_hash_to_aes_key (&mychk->key, &sk, &iv);
386 GNUNET_CRYPTO_aes_encrypt (pt_block, pt_size, &sk, &iv, enc); 386 GNUNET_CRYPTO_symmetric_encrypt (pt_block, pt_size, &sk, &iv, enc);
387 GNUNET_CRYPTO_hash (enc, pt_size, &mychk->query); 387 GNUNET_CRYPTO_hash (enc, pt_size, &mychk->query);
388 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 388 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
389 "TE calculates query to be `%s', stored at %u\n", 389 "TE calculates query to be `%s', stored at %u\n",