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
. - Encoded
String - The result of
encode_string
. - Encoded
String Iter - An iterator over
EncodedString
. - Left
Encode - The result of
left_encode
. - Left
Encode Bytes - The result of
left_encode_bytes
. - Right
Encode - The result of
right_encode
. - Right
Encode Bytes - The result of
right_encode_bytes
.
Functions§
- bytepad
- Prepends the integer encoding of
W
tos
, then pads the result to a multiple ofW
for a non-zeroW
. - bytepad_
blocks - Same as
bytepad
, but returns the data as blocks of lengthW
. - 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.