2016-11-10 00:27:08 +01:00
|
|
|
package fusefrontend
|
|
|
|
|
|
|
|
import (
|
|
|
|
"errors"
|
|
|
|
|
|
|
|
"github.com/rfjakob/gocryptfs/internal/ctlsock"
|
|
|
|
)
|
|
|
|
|
|
|
|
var _ ctlsock.Interface = &FS{} // Verify that interface is implemented.
|
|
|
|
|
|
|
|
// EncryptPath implements ctlsock.Backend
|
|
|
|
func (fs *FS) EncryptPath(plainPath string) (string, error) {
|
|
|
|
return fs.encryptPath(plainPath)
|
|
|
|
}
|
|
|
|
|
|
|
|
// DecryptPath implements ctlsock.Backend
|
2016-11-10 23:32:51 +01:00
|
|
|
func (fs *FS) DecryptPath(cipherPath string) (string, error) {
|
2017-01-29 18:55:52 +01:00
|
|
|
return "", errors.New("Forward mode does not have path decryption implemented")
|
2016-11-10 00:27:08 +01:00
|
|
|
}
|