Incorporate the specified data of numBytes into the hash state.

Synopsis

Declared in <bslh_siphashalgorithm.h>

void
operator()(
    void const* data,
    size_t numBytes);

Description

Incorporate the specified data, of at least the specified numBytes, into the internal state of the hashing algorithm. Every bit of data incorporated into the internal state of the algorithm will contribute to the final hash produced by computeHash(). The same hash will be produced regardless of whether a sequence of bytes is passed in all at once or through multiple calls to this member function. Input where numBytes is 0 will have no effect on the internal state of the algorithm. The behaviour is undefined unless data points to a valid memory location with at least numBytes bytes of initialized memory.

Parameters

Name

Description

data

bytes to incorporate into the hash

numBytes

number of bytes of data to incorporate

Created with MrDocs