Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateRandomKey ¶
Types ¶
type DecryptStream ¶
type DecryptStream struct {
ChunkSize int64
MasterKey []byte
CipherKey []byte
Source io.Reader
SourceErr error
SourceBuffer *bytes.Buffer
}
func NewDecryptStream ¶
func (*DecryptStream) AddPlaintext ¶
func (stream *DecryptStream) AddPlaintext()
type EncryptStream ¶
type EncryptStream struct {
ChunkSize int64
MasterKey []byte
CipherKey []byte
Nonce NonceInc
Source io.Reader
SourceErr error
SourceBuffer *bytes.Buffer
}
func NewEncryptStream ¶
func (*EncryptStream) AddCiphertext ¶
func (stream *EncryptStream) AddCiphertext()
func (*EncryptStream) GetEncryptedCipherKey ¶
func (stream *EncryptStream) GetEncryptedCipherKey() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.