Versions in this module Expand all Collapse all v0 v0.0.1 May 21, 2017 Changes in this version + const DECRYPT_MODE + const ENCRYPT_MODE + const RSW_HTML + const RSW_PREFIX + func CopyFileMetadata(srcFileInfo os.FileInfo, destFile string) error + func DecryptDir(dirPath string, config ServerConfig) error + func EncryptDir(dirPath string, config ServerConfig) error + func Exists(name string) bool + func GenSharedKey(privKey *ecdsa.PrivateKey, pubKey *ecdsa.PublicKey) ([]byte, error) + func GenerateECDSAPrivateKey() (*ecdsa.PrivateKey, error) + func GetCipherBlockMode(key []byte, mode CipherMode) (cipher.BlockMode, error) + func ToHex(num *big.Int) string + func WalkFuncDecorator(walkFn filepath.WalkFunc) filepath.WalkFunc + type CipherMode int + type CipheredFileInfo struct + HeaderLen int + PubKey *ecdsa.PublicKey + type PrivKey struct + D string + func GetOrCreatePrivKey(ecdsaPrivKey *ecdsa.PrivateKey, file string) PrivKey + type PubKey struct + X string + Y string + func GetOrCreatePubKey(ecdsaPrivKey *ecdsa.PrivateKey, file string) PubKey + type ServerConfig struct + PrivKey PrivKey + PubKey PubKey