GNUnet  0.11.x
Data Fields
GNUNET_CRYPTO_FileHashContext Struct Reference

Context used when hashing a file. More...

Collaboration diagram for GNUNET_CRYPTO_FileHashContext:
[legend]

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_FileHandlefh
 File descriptor. More...
 
gcry_md_hd_t md
 Cummulated hash. More...
 
uint64_t fsize
 Size of the file. More...
 
uint64_t offset
 Current offset. More...
 
struct GNUNET_SCHEDULER_Tasktask
 Current task for hashing. More...
 
enum GNUNET_SCHEDULER_Priority priority
 Priority we use. More...
 
size_t bsize
 Blocksize. More...
 

Detailed Description

Context used when hashing a file.

Definition at line 43 of file crypto_hash_file.c.

Field Documentation

◆ callback

GNUNET_CRYPTO_HashCompletedCallback GNUNET_CRYPTO_FileHashContext::callback

Function to call upon completion.

Definition at line 48 of file crypto_hash_file.c.

Referenced by file_hash_finish(), and GNUNET_CRYPTO_hash_file().

◆ callback_cls

void* GNUNET_CRYPTO_FileHashContext::callback_cls

Closure for callback.

Definition at line 53 of file crypto_hash_file.c.

Referenced by file_hash_finish(), and GNUNET_CRYPTO_hash_file().

◆ buffer

unsigned char* GNUNET_CRYPTO_FileHashContext::buffer

IO buffer.

Definition at line 58 of file crypto_hash_file.c.

Referenced by file_hash_task(), GNUNET_CRYPTO_hash_file(), and GNUNET_CRYPTO_zero_keys().

◆ filename

char* GNUNET_CRYPTO_FileHashContext::filename

Name of the file we are hashing.

Definition at line 63 of file crypto_hash_file.c.

Referenced by file_hash_finish(), file_hash_task(), GNUNET_CRYPTO_hash_file(), and GNUNET_CRYPTO_hash_file_cancel().

◆ fh

struct GNUNET_DISK_FileHandle* GNUNET_CRYPTO_FileHashContext::fh

File descriptor.

Definition at line 68 of file crypto_hash_file.c.

Referenced by file_hash_finish(), file_hash_task(), GNUNET_CRYPTO_hash_file(), and GNUNET_CRYPTO_hash_file_cancel().

◆ md

gcry_md_hd_t GNUNET_CRYPTO_FileHashContext::md

Cummulated hash.

Definition at line 73 of file crypto_hash_file.c.

Referenced by file_hash_finish(), file_hash_task(), and GNUNET_CRYPTO_hash_file().

◆ fsize

uint64_t GNUNET_CRYPTO_FileHashContext::fsize

Size of the file.

Definition at line 78 of file crypto_hash_file.c.

Referenced by file_hash_task(), GNUNET_CRYPTO_hash_file(), gnunet-chk.Chk::setSize(), and gnunet-chk.Chk::uri().

◆ offset

uint64_t GNUNET_CRYPTO_FileHashContext::offset

Current offset.

Definition at line 83 of file crypto_hash_file.c.

Referenced by file_hash_task().

◆ task

struct GNUNET_SCHEDULER_Task* GNUNET_CRYPTO_FileHashContext::task

Current task for hashing.

Definition at line 88 of file crypto_hash_file.c.

Referenced by file_hash_task(), GNUNET_CRYPTO_hash_file(), and GNUNET_CRYPTO_hash_file_cancel().

◆ priority

enum GNUNET_SCHEDULER_Priority GNUNET_CRYPTO_FileHashContext::priority

Priority we use.

Definition at line 93 of file crypto_hash_file.c.

Referenced by file_hash_task(), and GNUNET_CRYPTO_hash_file().

◆ bsize

size_t GNUNET_CRYPTO_FileHashContext::bsize

Blocksize.

Definition at line 98 of file crypto_hash_file.c.

Referenced by file_hash_task(), and GNUNET_CRYPTO_hash_file().


The documentation for this struct was generated from the following file: