ELFHash

Implementation of ELFHash digester.

ELFHash is a non-cryptographic hash function used in some hash table implementations. It produces a hash value that can be used for indexing into a hash table.

static
@digester
class ELFHash {}

Members

Static functions

hash
ubyte[] hash(ubyte[] data)

Computes the ELFHash digest of the given data.

Examples

import tern.digest.elfhash;

ubyte[] data = [1, 2, 3, 4, 5];
auto hashValue = ELFHash.hash(data);

Meta