Documentation ¶
Overview ¶
Package crypt implements PKCS#7 padding, as defined in RFC 5652. 源码: https://github.com/zenazn/pkcs7pad 标准:https://datatracker.ietf.org/doc/rfc2315/
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Pad ¶
Pad appends PKCS#7 padding to the given buffer such that the resulting slice of bytes has a length divisible by the given size. If you are using this function to pad a plaintext before encrypting it with a block cipher, the size should be equal to the block size of the cipher (e.g., aes.BlockSize).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.