core/crypto/shake
shake
Types
1Procedures
8clone
clone :: proc(ctx: ^Context, other: ^Context)Sourceclone clones the Context other into ctx.
init_128
init_128 :: proc(ctx: ^Context)Sourceinit_128 initializes a Context for SHAKE128.
init_256
init_256 :: proc(ctx: ^Context)Sourceinit_256 initializes a Context for SHAKE256.
init_cshake_128
init_cshake_128 :: proc(ctx: ^Context, domain_sep: []u8)Sourceinit_cshake_128 initializes a Context for cSHAKE128.
init_cshake_256
init_cshake_256 :: proc(ctx: ^Context, domain_sep: []u8)Sourceinit_cshake_256 initializes a Context for cSHAKE256.
read
read :: proc(ctx: ^Context, dst: []u8)Sourceread 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)Sourcereset sanitizes the Context. The Context must be re-initialized to be used again.
write
write :: proc(ctx: ^Context, data: []u8)Sourcewrite 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.