HashCRC32

class dsviper.HashCRC32

Bases: object

Hashes data with CRC32.

block_size() → int

Return the internal block size of the hash algorithm in bytes.

digest() → ValueBlob

Return the hash of everything fed so far, as raw bytes.

digest_size() → int

Return the size of the resulting hash in bytes.

static hash(blob: ValueBlob) → str

Return the hexdigest of the blob.

hashing() → Hashing

Return the Hashing interface.

hexdigest() → str

Return the digest in hexadecimal.

name() → str

Return the name of the algorithm, as it appears in a codec header.

reset() → None

Reset the hasher.

update(blob: ValueBlob) → None

Feed blob into the hash.