S2OPC OPCUA Toolkit
|
Implementations of some hash functions. More...
#include <stddef.h>
#include <stdint.h>
Go to the source code of this file.
Functions | |
uint64_t | SOPC_DJBHash (const uint8_t *data, size_t len) |
Hashes some data using DJB hash. | |
uint64_t | SOPC_DJBHash_Step (uint64_t current, const uint8_t *data, size_t len) |
Appends some data to a DJB hash. | |
Implementations of some hash functions.
uint64_t SOPC_DJBHash | ( | const uint8_t * | data, |
size_t | len ) |
Hashes some data using DJB hash.
data | The data to hash. |
len | The length of the data, in bytes. |
uint64_t SOPC_DJBHash_Step | ( | uint64_t | current, |
const uint8_t * | data, | ||
size_t | len ) |
Appends some data to a DJB hash.
current | The current value of the hash. |
data | The data to hash. |
len | The length of the data, in bytes. |
This interface allows computing a hash over various pieces of data in several calls.