HashSHA3

class dsviper.HashSHA3(bits)

Bases: object

A class used to hash a data with SHA3. Supported bits are 224, 256, 384 or 512.

block_size() int

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

digest() ValueBlob

Return the digest.

digest_size() int

Return the size of the resulting hash in bytes.

static hash(blob: ValueBlob, bits: str = '256') str

Return the hexdigest of the blob.

hashing() Hashing

Return the Hashing interface.

hexdigest() str

Return the hexa digest.

name() str

Return the name.

reset() None

Reset the hasher.

update(blob: ValueBlob) None

Update the data.