Combine the specified input into the state of the specified hashAlg.

Synopsis

Declared in <bslh_hash.h>

template<
    class HASH_ALGORITHM,
    class TYPE,
    size_t N>
void
hashAppend(
    HASH_ALGORITHM& hashAlg,
    TYPE(& input)[]);

Description

Passes the specified input into the specified hashAlg to be combined into the internal state of the algorithm which is used to produce the resulting hash value. Note that the elements in input will be hashed one at a time by calling hashAppend because the (template parameter) TYPE might not be hashable as a contiguous sequence of bytes. Also note that this hashAppend exists because some platforms don't recognize that adding a const qualifier is a better match for arrays than decaying to a pointer and using the hashAppend function for pointers.

Parameters

Name

Description

hashAlg

hashing algorithm to update

input

array whose elements to incorporate into the hash

Created with MrDocs