sha3

Module for SHA-3 algorithms.

class Kekkak256

Bases: object

Kekkak-256 class. It computes digests using Kekkak-256 algorithm.

static QuickDigest(data: Union[bytes, str]) bytes

Compute the digest (quick version).

Parameters:

data (str or bytes) – Data

Returns:

Computed digest

Return type:

bytes

static DigestSize() int

Get the digest size in bytes.

Returns:

Digest size in bytes

Return type:

int

class Sha3_256

Bases: object

SHA3-256 class. It computes digests using SHA3-256 algorithm.

static QuickDigest(data: Union[bytes, str]) bytes

Compute the digest (quick version).

Parameters:

data (str or bytes) – Data

Returns:

Computed digest

Return type:

bytes

static DigestSize() int

Get the digest size in bytes.

Returns:

Digest size in bytes

Return type:

int