core/crypto/shake

shake

Types

1

Context

Context :: _sha3.ContextSource

Context is a SHAKE128, SHAKE256, cSHAKE128, or cSHAKE256 instance.

Procedures

8

read

read :: proc(ctx: ^Context, dst: []u8)Source

read reads output from the SHAKE instance. There is no practical upper limit to the amount of data that can be read from SHAKE. After read has been called one or more times, further calls to write will panic.

reset

reset :: proc(ctx: ^Context)Source

reset sanitizes the Context. The Context must be re-initialized to be used again.

write

write :: proc(ctx: ^Context, data: []u8)Source

write writes more data into the SHAKE instance. This MUST not be called after any reads have been done, and attempts to do so will panic.

Reference search

Find anything

Documentation preferences

Settings

System theme variants

Used only while Theme is set to System.