Expand description
SHA-3 utilities.
Macros§
- encode_
string - Encodes
ssuch 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
Wtos, then pads the result to a multiple ofWfor a non-zeroW. - bytepad_
blocks - Same as
bytepad, but returns the data as blocks of lengthW. - encode_
string - Encodes
ssuch that it can be unambiguously encoded from the beginning. - left_
encode - Encodes
xas a byte string in a way that can be unambiguously parsed from the beginning. - left_
encode_ bytes - Encodes
x*8as a byte string in a way that can be unambiguously parsed from the beginning. - right_
encode - Encodes
xas a byte string in a way that can be unambiguously parsed from the end. - right_
encode_ bytes - Encodes
x*8as a byte string in a way that can be unambiguously parsed from the beginning.