Type Function TurboShake [src]

The TurboSHAKE extendable output hash function. It is based on the same permutation as SHA3 and SHAKE, but which much higher performance. The delimiter is 0x1f by default, but can be changed for context-separation. https://eprint.iacr.org/2023/342

Prototype

pub fn TurboShake(comptime security_level: u11, comptime delim: ?u7) type

Parameters

security_level: u11delim: ?u7

Source

pub fn TurboShake(comptime security_level: u11, comptime delim: ?u7) type { comptime assert(security_level <= 256); const d = delim orelse 0x1f; comptime assert(d >= 0x01); // delimiter must be >= 1 return ShakeLike(security_level, d, 12); }