Versions in this module Expand all Collapse all v1 v1.0.0 May 25, 2020 Changes in this version + func Allocate(length int) ([]byte, error) + func Decrypt(data []byte, passphrase string) ([]byte, error) + func Encrypt(data []byte, passphrase string) ([]byte, error) + func Unallocate(bytes []byte) error + func WriteFilesToZip(w *zip.Writer, files chan *multipart.FileHeader, wg *sync.WaitGroup) error + type OnionBuffer struct + Bytes []byte + Checksum string + DownloadLimit int64 + Downloads int64 + Encrypted bool + Expire bool + ExpiresAt time.Time + Name string + func (b *OnionBuffer) Destroy() error + func (b *OnionBuffer) GetChecksum() (string, error) + func (b *OnionBuffer) IsExpired() bool + func (b *OnionBuffer) Mlock() error + func (b *OnionBuffer) Munlock() error + func (b *OnionBuffer) SetExpiration(expiration string) error + func (b *OnionBuffer) ValidateChecksum() (bool, error)