Discover Packages
github.com/msales/pkg/v4
cryptox
package
Version:
v4.4.0
Opens a new window with list of versions in this module.
Published: Jun 25, 2020
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
PKCS7Pad right-pads the given byte slice with 1 to n bytes, where
n is the block size. The size of the result is x times n, where x
is at least 1.
PKCS7Unpad validates and unpads THE data from the given bytes slice.
The returned value will be 1 to n bytes smaller depending on the
amount of padding, where n is the block size.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.