Method Nettle.SHA3_128()->shake()


Method shake

string(8bit) shake(string(8bit) in, int(0..) bytes)

Description

SHAKE-128 hash.

Works as a (faster) shortcut for SHA3_128.State()->update(in)->shake(bytes).

This function is similar to hash(), but can return an arbitrary number of bytes. When bytes is digest_size the security is equivalent to that of hash(), albeit the output is different.

See also

hash(), State()->update() and State()->shake().