Crate sha3_utils

Source
Expand description

SHA-3 utilities.

Macros§

encode_string
Encodes s such that it can be unambiguously encoded from the beginning.

Structs§

BytePad
The result of bytepad.
EncodedString
The result of encode_string.
EncodedStringIter
An iterator over EncodedString.
LeftEncode
The result of left_encode.
LeftEncodeBytes
The result of left_encode_bytes.
RightEncode
The result of right_encode.
RightEncodeBytes
The result of right_encode_bytes.

Functions§

bytepad
Prepends the integer encoding of W to s, then pads the result to a multiple of W for a non-zero W.
bytepad_blocks
Same as bytepad, but returns the data as blocks of length W.
encode_string
Encodes s such that it can be unambiguously encoded from the beginning.
left_encode
Encodes x as a byte string in a way that can be unambiguously parsed from the beginning.
left_encode_bytes
Encodes x*8 as a byte string in a way that can be unambiguously parsed from the beginning.
right_encode
Encodes x as a byte string in a way that can be unambiguously parsed from the end.
right_encode_bytes
Encodes x*8 as a byte string in a way that can be unambiguously parsed from the beginning.