Context used when hashing a file. More...
Data Fields | |
GNUNET_CRYPTO_HashCompletedCallback | callback |
Function to call upon completion. More... | |
void * | callback_cls |
Closure for callback. More... | |
unsigned char * | buffer |
IO buffer. More... | |
char * | filename |
Name of the file we are hashing. More... | |
struct GNUNET_DISK_FileHandle * | fh |
File descriptor. More... | |
gcry_md_hd_t | md |
Cumulated hash. More... | |
uint64_t | fsize |
Size of the file. More... | |
uint64_t | offset |
Current offset. More... | |
struct GNUNET_SCHEDULER_Task * | task |
Current task for hashing. More... | |
enum GNUNET_SCHEDULER_Priority | priority |
Priority we use. More... | |
size_t | bsize |
Blocksize. More... | |
Context used when hashing a file.
Definition at line 44 of file crypto_hash_file.c.
GNUNET_CRYPTO_HashCompletedCallback GNUNET_CRYPTO_FileHashContext::callback |
Function to call upon completion.
Definition at line 49 of file crypto_hash_file.c.
Referenced by file_hash_finish(), and GNUNET_CRYPTO_hash_file().
void* GNUNET_CRYPTO_FileHashContext::callback_cls |
Closure for callback.
Definition at line 54 of file crypto_hash_file.c.
Referenced by file_hash_finish(), and GNUNET_CRYPTO_hash_file().
unsigned char* GNUNET_CRYPTO_FileHashContext::buffer |
IO buffer.
Definition at line 59 of file crypto_hash_file.c.
Referenced by file_hash_task(), and GNUNET_CRYPTO_hash_file().
char* GNUNET_CRYPTO_FileHashContext::filename |
Name of the file we are hashing.
Definition at line 64 of file crypto_hash_file.c.
Referenced by file_hash_finish(), file_hash_task(), GNUNET_CRYPTO_hash_file(), and GNUNET_CRYPTO_hash_file_cancel().
struct GNUNET_DISK_FileHandle* GNUNET_CRYPTO_FileHashContext::fh |
File descriptor.
Definition at line 69 of file crypto_hash_file.c.
Referenced by file_hash_finish(), file_hash_task(), GNUNET_CRYPTO_hash_file(), and GNUNET_CRYPTO_hash_file_cancel().
gcry_md_hd_t GNUNET_CRYPTO_FileHashContext::md |
Cumulated hash.
Definition at line 74 of file crypto_hash_file.c.
Referenced by file_hash_finish(), file_hash_task(), GNUNET_CRYPTO_hash_file(), and GNUNET_CRYPTO_hash_file_cancel().
uint64_t GNUNET_CRYPTO_FileHashContext::fsize |
Size of the file.
Definition at line 79 of file crypto_hash_file.c.
Referenced by file_hash_task(), GNUNET_CRYPTO_hash_file(), gnunet-chk.Chk::setSize(), and gnunet-chk.Chk::uri().
uint64_t GNUNET_CRYPTO_FileHashContext::offset |
struct GNUNET_SCHEDULER_Task* GNUNET_CRYPTO_FileHashContext::task |
Current task for hashing.
Definition at line 89 of file crypto_hash_file.c.
Referenced by file_hash_task(), GNUNET_CRYPTO_hash_file(), and GNUNET_CRYPTO_hash_file_cancel().
enum GNUNET_SCHEDULER_Priority GNUNET_CRYPTO_FileHashContext::priority |
Priority we use.
Definition at line 94 of file crypto_hash_file.c.
Referenced by file_hash_task(), and GNUNET_CRYPTO_hash_file().
size_t GNUNET_CRYPTO_FileHashContext::bsize |
Blocksize.
Definition at line 99 of file crypto_hash_file.c.
Referenced by file_hash_task(), and GNUNET_CRYPTO_hash_file().