GNUnet 0.21.0
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 44 of file crypto_hash_file.c.

Field Documentation

◆ callback

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().

◆ callback_cls

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().

◆ buffer

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().

◆ filename

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().

◆ fh

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().

◆ md

gcry_md_hd_t GNUNET_CRYPTO_FileHashContext::md

Cummulated 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().

◆ fsize

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().

◆ offset

uint64_t GNUNET_CRYPTO_FileHashContext::offset

Current offset.

Definition at line 84 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 89 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 94 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 99 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: