Module encoding

Module encoding 

Source
Expand description

Base64 encodings

Constantsยง

PAD ๐Ÿ”’
Padding character

Traitsยง

Encoding
Base64 encoding trait.

Functionsยง

decode_padding ๐Ÿ”’
Validate padding is of the expected length compute unpadded length.
decoded_len ๐Ÿ”’
Get the length of the output from decoding the provided unpadded Base64-encoded input.
encoded_len_inner ๐Ÿ”’
is_pad_ct ๐Ÿ”’
Branchless match that a given byte is the PAD character
validate_last_block ๐Ÿ”’
Validate that the last block of the decoded data round-trips back to the encoded data.