Documentation ¶
Index ¶
- func Padding_ISO7816_4(ciphertext []byte, blockSize int) []byte
- func Padding_PKCS5(ciphertext []byte, blockSize int) []byte
- func Padding_Pboc(data string, blocksize int) (out string, err error)
- func Padding_Pkcs7(src []byte, blockSize int) []byte
- func UnPadding_ISO7816_4(plain []byte, blockSize int) []byte
- func UnPadding_PKCS5(origData []byte) []byte
- func UnPadding_Pkcs7(src []byte, blockSize int) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Padding_ISO7816_4 ¶
模式2(IEC 9797-1填充,或 PBOC2.0填充):
以0x80和0x00构成的字节序列填充,0x80只出现在最前面,仅仅只出现且一次必须出现,剩下的字节以0x00填充.
func Padding_PKCS5 ¶
func Padding_Pboc ¶ added in v1.0.2
func Padding_Pkcs7 ¶ added in v1.0.2
func UnPadding_ISO7816_4 ¶
func UnPadding_PKCS5 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.