Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAesDecryptionStream ¶
NewAesDecryptionStream creates a new AES encryption stream based on given key and IV. Caller must ensure the length of key and IV is either 16, 24 or 32 bytes.
func NewAesEncryptionStream ¶
NewAesEncryptionStream creates a new AES description stream based on given key and IV. Caller must ensure the length of key and IV is either 16, 24 or 32 bytes.
Types ¶
type CryptionReader ¶ added in v1.11.1
type CryptionReader struct {
// contains filtered or unexported fields
}
func NewCryptionReader ¶
func NewCryptionReader(stream cipher.Stream, reader io.Reader) *CryptionReader
func (*CryptionReader) Read ¶ added in v1.11.1
func (this *CryptionReader) Read(data []byte) (int, error)
func (*CryptionReader) Release ¶ added in v1.11.1
func (this *CryptionReader) Release()
type CryptionWriter ¶ added in v1.11.1
type CryptionWriter struct {
// contains filtered or unexported fields
}
func NewCryptionWriter ¶
func NewCryptionWriter(stream cipher.Stream, writer io.Writer) *CryptionWriter
func (*CryptionWriter) Release ¶ added in v1.11.1
func (this *CryptionWriter) Release()
func (*CryptionWriter) Write ¶ added in v1.11.1
func (this *CryptionWriter) Write(data []byte) (int, error)
Click to show internal directories.
Click to hide internal directories.