aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init_dir.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/init_dir.go b/init_dir.go
index 00fb390..ab4c3df 100644
--- a/init_dir.go
+++ b/init_dir.go
@@ -14,6 +14,7 @@ import (
"github.com/rfjakob/gocryptfs/v2/internal/fido2"
"github.com/rfjakob/gocryptfs/v2/internal/nametransform"
"github.com/rfjakob/gocryptfs/v2/internal/readpassword"
+ "github.com/rfjakob/gocryptfs/v2/internal/stupidgcm"
"github.com/rfjakob/gocryptfs/v2/internal/syscallcompat"
"github.com/rfjakob/gocryptfs/v2/internal/tlog"
)
@@ -67,6 +68,11 @@ func initDir(args *argContainer) {
tlog.Fatal.Printf("Invalid cipherdir: %v", err)
os.Exit(exitcodes.CipherDir)
}
+ if !args.xchacha && !stupidgcm.CpuHasAES() {
+ tlog.Info.Printf(tlog.ColorYellow +
+ "Notice: Your CPU does not have AES acceleration. Consider using -xchacha for better performance." +
+ tlog.ColorReset)
+ }
}
// Choose password for config file
if len(args.extpass) == 0 && args.fido2 == "" {