Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func P7BlockDecrypt ¶
P7BlockDecrypt 解密密文,并去除PKCS#7填充 decrypter: 块解密器 in: 密文输入流 out: 明文输出流
Types ¶
type PKCS7PaddingReader ¶
type PKCS7PaddingReader struct {
// contains filtered or unexported fields
}
PKCS7PaddingReader 符合PKCS#7填充的输入流
func NewPKCS7PaddingReader ¶
func NewPKCS7PaddingReader(in io.Reader, blockSize int) *PKCS7PaddingReader
NewPKCS7PaddingReader 创建PKCS7填充Reader in: 输入流 blockSize: 分块大小
type PKCS7PaddingWriter ¶
type PKCS7PaddingWriter struct {
// contains filtered or unexported fields
}
PKCS7PaddingWriter 符合PKCS#7去除的输入流,最后一个 分组根据会根据填充情况去除填充。
func NewPKCS7PaddingWriter ¶
func NewPKCS7PaddingWriter(out io.Writer, blockSize int) *PKCS7PaddingWriter
NewPKCS7PaddingWriter PKCS#7 填充Writer 可以去除填充
Click to show internal directories.
Click to hide internal directories.