diff options
author | Jakob Unterwurzacher | 2015-09-06 10:38:43 +0200 |
---|---|---|
committer | Jakob Unterwurzacher | 2015-09-06 10:42:34 +0200 |
commit | 58d1e24b7c4eb69376dd0ec230c42ea9aeb70f2d (patch) | |
tree | ac99fc15a5ab2f34fc85ac13188ffa6e4dc11815 /frontend | |
parent | ad3a1a88994bbf54e95295d70f7424b67894da3e (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 'frontend')
-rw-r--r-- | frontend/fe_fs.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/frontend/fe_fs.go b/frontend/fe_fs.go index 012d7f0..4d49194 100644 --- a/frontend/fe_fs.go +++ b/frontend/fe_fs.go @@ -27,14 +27,14 @@ type nullTracer struct {} func (nullTracer) Trace(op cluefs.FsOperTracer) {} -func NewFS(key [16]byte, backing string) *FS { +func NewFS(key [16]byte, backing string, useOpenssl bool) *FS { var nt nullTracer clfs, err := cluefs.NewClueFS(backing, nt) if err != nil { panic(err) } return &FS { - CryptFS: cryptfs.NewCryptFS(key), + CryptFS: cryptfs.NewCryptFS(key, useOpenssl), ClueFS: clfs, backing: backing, } |