package
0.0.0-20210611082912-ece74ff677a6
Repository: https://github.com/horizonliu/gocryptfs.git
Documentation: pkg.go.dev
# Functions
Create - create a new config with a random key encrypted with "password" and write it to "filename".
Load loads and parses the config file at "filename".
LoadAndDecrypt - read config file from disk and decrypt the contained key using "password".
NewScryptKDF returns a new instance of ScryptKDF.
# Constants
ConfDefaultName is the default configuration file name.
ConfReverseName is the default configuration file name in reverse mode, the config file gets stored next to the plain-text files.
FlagAESSIV selects an AES-SIV based crypto backend.
FlagDirIV indicates that a per-directory IV file is used.
FlagEMENames indicates EME (ECB-Mix-ECB) filename encryption.
FlagFIDO2 means that "-fido2" was used when creating the filesystem.
FlagGCMIV128 indicates 128-bit GCM IVs.
FlagHKDF enables HKDF-derived keys for use with GCM, EME and SIV instead of directly using the master key (GCM and EME) or the SHA-512 hashed master key (SIV).
FlagLongNames allows file names longer than 176 bytes.
FlagPlaintextNames indicates that filenames are unencrypted.
FlagRaw64 enables raw (unpadded) base64 encoding for file names.
ScryptDefaultLogN is the default scrypt logN configuration parameter.
# Structs
ConfFile is the content of a config file.
FIDO2Params is a structure for storing FIDO2 parameters.
ScryptKDF is an instance of the scrypt key deriviation function.