High Performance OPC UA Server SDK  1.2.0.193
file_checksum_ctx Struct Reference

Checksum context. More...

#include <file_checksum.h>

Data Fields

uint32_t s1
 
uint32_t s2
 

Detailed Description

Checksum context.

Currently the checksum is implemented using Adler32. This could be changed without breaking the interface. However the file versions needs to be changed then, because it would break the file compatibility. This implementation is used by file_reader and file_writer.

Usage: The file_checksum_init(), file_checksum_update() and file_checksum_final() are the core functions. Initialize this checksum context with file_checksum_init(), call file_checksum_update() one or more times to process the data which should be hashed, then call file_checksum_final() to get the resulting checksum value. file_checksum_file is a convenience function which hashes a complete file and returns the result.


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