aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2015-09-06 10:38:43 +0200
committerJakob Unterwurzacher2015-09-06 10:42:34 +0200
commit58d1e24b7c4eb69376dd0ec230c42ea9aeb70f2d (patch)
treeac99fc15a5ab2f34fc85ac13188ffa6e4dc11815 /main.go
parentad3a1a88994bbf54e95295d70f7424b67894da3e (diff)
Add OpenSSL support for file content encryption/decryption
This brings streaming read performance from 30MB/s to 81MB/s (similar improvement for writes)
Diffstat (limited to 'main.go')
-rw-r--r--main.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.go b/main.go
index 20b340a..3ad0fa4 100644
--- a/main.go
+++ b/main.go
@@ -11,6 +11,7 @@ import (
const (
PROGRAM_NAME = "gocryptfs"
+ USE_OPENSSL = true
)
func main() {
@@ -22,7 +23,7 @@ func main() {
// Create the file system object
var key [16]byte
- cfs := frontend.NewFS(key, conf.GetShadowDir())
+ cfs := frontend.NewFS(key, conf.GetShadowDir(), USE_OPENSSL)
// Mount the file system
mountOpts := []fuse.MountOption{