Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cypher ¶
type Cypher struct { *Manager // contains filtered or unexported fields }
Cypher contains the cryptographic and identifying information needed to decrypt a file part and associate it with the correct file.
func (Cypher) Encrypt ¶
func (c Cypher) Encrypt(contents []byte) ( cipherText, mac []byte, fp format.Fingerprint)
Encrypt encrypts the file part contents and returns them along with a MAC and fingerprint.
func (Cypher) GetFingerprint ¶
func (c Cypher) GetFingerprint() format.Fingerprint
GetFingerprint generates and returns the fingerprints.
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager the creation
func LoadManager ¶
LoadManager loads the Manager from storage.
func NewManager ¶
NewManager returns a new cypher Manager initialised with the given number of fingerprints.
func (*Manager) GetUnusedCyphers ¶
GetUnusedCyphers returns a list of cyphers with unused fingerprints numbers.
Click to show internal directories.
Click to hide internal directories.