std.crypto.hash.sha3
The entries of std.crypto.hash.sha3 in the Zig reference. This page has 36 cards.
pub fn CShake(comptime security_level: u11, comptime fname: ?[]const u8) type
The cSHAKE extendable output hash function. cSHAKE is similar to SHAKE, but in addition to the input message, it also takes an optional context (aka customization string).
- Kind
- type function
- Module
std.crypto.hash.sha3
- Kind
- type
- Module
std.crypto.hash.sha3
- Kind
- type
- Module
std.crypto.hash.sha3
pub fn Keccak(comptime f: u11, comptime output_bits: u11, comptime default_delim: u8, comptime rounds: u5) type
A generic Keccak hash function.
- Kind
- type function
- Module
std.crypto.hash.sha3
The block length, or rate, in bytes.
- Kind
- constant
- Module
std.crypto.hash.sha3
The output length, in bytes.
- Kind
- constant
- Module
std.crypto.hash.sha3
pub fn final(self: *Self, out: *[digest_length]u8) void
Return the hash of the absorbed bytes.
- Kind
- function
- Module
std.crypto.hash.sha3
pub fn finalResult(d: *Self) [digest_length]u8
- Kind
- function
- Module
std.crypto.hash.sha3
pub fn hash(bytes: []const u8, out: *[digest_length]u8, options: Options) void
Hash a slice of bytes.
- Kind
- function
- Module
std.crypto.hash.sha3
pub fn init(options: Options) Self
Initialize a Keccak hash function.
- Kind
- function
- Module
std.crypto.hash.sha3
The delimiter can be overwritten in the options.
- Kind
- type
- Module
std.crypto.hash.sha3
pub fn update(self: *Self, bytes: []const u8) void
Absorb a slice of bytes into the state.
- Kind
- function
- Module
std.crypto.hash.sha3
- Kind
- type
- Module
std.crypto.hash.sha3
- Kind
- type
- Module
std.crypto.hash.sha3
pub fn KMac(comptime security_level: u11) type
The KMAC extendable output authentication function.
- Kind
- type function
- Module
std.crypto.hash.sha3
- Kind
- type
- Module
std.crypto.hash.sha3
- Kind
- type
- Module
std.crypto.hash.sha3
- Kind
- constant
- Module
std.crypto.hash.sha3
- Kind
- constant
- Module
std.crypto.hash.sha3
The NIST SP 800-185 encoded length format.
- Kind
- enum
- Module
std.crypto.hash.sha3
pub fn encode(comptime encoding: NistLengthEncoding, len: usize) Length
Encode a length according to NIST SP 800-185.
- Kind
- function
- Module
std.crypto.hash.sha3
A length encoded according to NIST SP 800-185.
- Kind
- struct
- Module
std.crypto.hash.sha3
pub fn slice(self: *const Length) []const u8
Return the encoded length as a slice.
- Kind
- function
- Module
std.crypto.hash.sha3
- Kind
- type
- Module
std.crypto.hash.sha3
- Kind
- type
- Module
std.crypto.hash.sha3
- Kind
- type
- Module
std.crypto.hash.sha3
- Kind
- type
- Module
std.crypto.hash.sha3
pub fn Shake(comptime security_level: u11) type
The SHAKE extendable output hash function.
- Kind
- type function
- Module
std.crypto.hash.sha3
- Kind
- type
- Module
std.crypto.hash.sha3
- Kind
- type
- Module
std.crypto.hash.sha3
pub fn TupleHash(comptime security_level: u11) type
The TupleHash extendable output hash function, with domain-separated inputs.
- Kind
- type function
- Module
std.crypto.hash.sha3
- Kind
- type
- Module
std.crypto.hash.sha3
- Kind
- type
- Module
std.crypto.hash.sha3
pub fn TurboShake(comptime security_level: u11, comptime delim: ?u7) type
The TurboSHAKE extendable output hash function.
- Kind
- type function
- Module
std.crypto.hash.sha3
pub fn TurboShake128(delim: ?u7) type
TurboSHAKE128 is a XOF (a secure hash function with a variable output length), with a 128 bit security level.
- Kind
- type function
- Module
std.crypto.hash.sha3
pub fn TurboShake256(comptime delim: ?u7) type
TurboSHAKE256 is a XOF (a secure hash function with a variable output length), with a 256 bit security level.
- Kind
- type function
- Module
std.crypto.hash.sha3