Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite8e3598

Browse files
committed
-init: suggest xchacha if we don't have AES accel
Example on Raspberry Pi 4:$ ./gocryptfs/gocryptfs -init $(mktemp -d)Notice: Your CPU does not have AES acceleration. Consider using -xchacha for better performance.Choose a password for protecting your files.Password:#607
1 parentc8996d2 commite8e3598

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

‎init_dir.go‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import (
1414
"github.com/rfjakob/gocryptfs/v2/internal/fido2"
1515
"github.com/rfjakob/gocryptfs/v2/internal/nametransform"
1616
"github.com/rfjakob/gocryptfs/v2/internal/readpassword"
17+
"github.com/rfjakob/gocryptfs/v2/internal/stupidgcm"
1718
"github.com/rfjakob/gocryptfs/v2/internal/syscallcompat"
1819
"github.com/rfjakob/gocryptfs/v2/internal/tlog"
1920
)
@@ -67,6 +68,11 @@ func initDir(args *argContainer) {
6768
tlog.Fatal.Printf("Invalid cipherdir: %v",err)
6869
os.Exit(exitcodes.CipherDir)
6970
}
71+
if!args.xchacha&&!stupidgcm.CpuHasAES() {
72+
tlog.Info.Printf(tlog.ColorYellow+
73+
"Notice: Your CPU does not have AES acceleration. Consider using -xchacha for better performance."+
74+
tlog.ColorReset)
75+
}
7076
}
7177
// Choose password for config file
7278
iflen(args.extpass)==0&&args.fido2=="" {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp