Documentation ¶
Index ¶
- type Crypto
- func (c *Crypto) Decompress(in, out []byte) error
- func (c *Crypto) DecryptAttributes(at []byte) ([]byte, error)
- func (c *Crypto) DecryptBlockIndexEntry(be []byte, iv []byte) error
- func (c *Crypto) DecryptFileData(fd []byte) ([]byte, error)
- func (c *Crypto) DecryptFilename(fn []byte) ([]byte, error)
- func (c *Crypto) EncryptAttributes(at []byte, iv []byte) ([]byte, error)
- func (c *Crypto) EncryptBlockIndexEntry(be []byte, iv []byte) error
- func (c *Crypto) EncryptFileData(fd, iv []byte) ([]byte, error)
- func (c *Crypto) EncryptFilename(fn []byte) ([]byte, error)
- type StoreConnection
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Crypto ¶
type Crypto struct {
// contains filtered or unexported fields
}
func (*Crypto) Decompress ¶
func (*Crypto) DecryptBlockIndexEntry ¶
func (*Crypto) EncryptAttributes ¶
func (*Crypto) EncryptBlockIndexEntry ¶
type StoreConnection ¶
type StoreConnection struct {
// contains filtered or unexported fields
}
func NewStoreConnection ¶
func NewStoreConnection(host, ca, cert, key string) (*StoreConnection, error)
Takes following crypto parameters
host - server hostname used for TLS verification. ca - server trusted certificate authority. cert - certificate from own pair. key - private key from own pair.
Click to show internal directories.
Click to hide internal directories.