Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateUnpaddedSize ¶
CalculateUnpaddedSize calculates the size of the passed in payload for the purpose of determining how much padding to add to reach the target size. CalculateUnpaddedSize returns an error if the payload Padding field is longer than 1.
func FromBytes ¶
FromBytes extracts a paylod from the byte representation of the payload. FromBytes leaves the padding untouched, returning it to the caller to handle or discard per their preference.
func MaxUnpaddedSize ¶
MaxUnpaddedSize returns the maximum size that a payload may be if no padding is included.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.