Documentation
¶
Index ¶
- Variables
- func ConvertKey(key []byte) (goodKey *[32]byte, err error)
- func ConvertNonce(nonce []byte) (goodNonce *[24]byte, err error)
- func Decrypt(cipher []byte, nonce *[24]byte, key *[32]byte) ([]byte, error)
- func Encrypt(plain []byte, nonce *[24]byte, key *[32]byte) ([]byte, error)
- func Now() time.Time
- func NowStr() string
- func RandomKey() (*[32]byte, error)
- func RandomKeySlice() ([]byte, error)
- func RandomNonce() (*[24]byte, error)
- func TimeStr(t time.Time) string
- func UnconvertKey(goodKey *[32]byte) ([]byte, error)
- type CanUseTor
- type PlainTags
- type RandomTags
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrDecrypt = fmt.Errorf("Error decrypting ciphertext") ErrDecryptEmpty = fmt.Errorf("Error decrypting empty ciphertext") ErrInvalidKey = fmt.Errorf("Invalid key") ErrNilKey = fmt.Errorf("Nil key") ErrNilNonce = fmt.Errorf("Nil nonce") ErrInvalidNonce = fmt.Errorf("Invalid nonce") )
View Source
var ( // TrustedBasePath is where private, non-shared data (e.g., crypto // keys) can be safely stored. TrustedBasePath = path.Join(home, ".cryptag") // BackendPath is the path to the directory where backend config // files are stored (e.g., "/home/myusername/.cryptag/backends"). // This can be overridden with the BACKEND_PATH // environment variable (rarely useful; this exists so that all // CrypTag backend configs could be on a USB drive). BackendPath = path.Join(home, ".cryptag", "backends") // DefaultLocalDataPath is the default directory where local // backends will be told to store their data. This directory will // contain 'rows' and 'tags' subdirectories. DefaultLocalDataPath = path.Join(home, ".cryptag") LocalDataPath = DefaultLocalDataPath )
View Source
var UseTor = false
UseTor is one centralized place for all code to check to see if it should do HTTP calls over Tor.
Functions ¶
func ConvertKey ¶
func ConvertNonce ¶
func RandomKeySlice ¶
func RandomNonce ¶
func UnconvertKey ¶
Types ¶
type RandomTags ¶
type RandomTags []string
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
cget
command
|
|
|
cmsg-sandstorm
command
|
|
|
cpass
command
|
|
|
cpass-dropboxremote
command
|
|
|
cpass-sandstorm
command
|
|
|
cput
command
|
|
|
cremind
command
|
|
|
cryptag
command
|
|
|
cryptag-sandstorm
command
|
|
|
cryptask-sandstorm
command
|
|
|
disappeared
|
|
|
github.com/stacktic/dropbox
Package dropbox implements the Dropbox core and datastore API.
|
Package dropbox implements the Dropbox core and datastore API. |
|
servers
|
|
|
cryptag-webserver
command
|
|
|
cryptagd
command
|
|
|
inmemory-webserver
command
|
|
|
keyserver
command
|
|
Click to show internal directories.
Click to hide internal directories.