Skip to content

Commit 39248aa

Browse files
lubuxtwiss
authored andcommitted
feat: Update key encryption in proton profile
- Set key encryption cipher to aes-256 - Set s2k count to 65536
1 parent 29afc71 commit 39248aa

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

profile/preset.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,13 +141,19 @@ func ProtonV1() *Custom {
141141
SetKeyAlgorithm: setKeyAlgorithm,
142142
Hash: crypto.SHA512,
143143
CipherEncryption: packet.CipherAES256,
144+
CipherKeyEncryption: packet.CipherAES256,
144145
CompressionAlgorithm: packet.CompressionZLIB,
145146
KeyGenAeadEncryption: &packet.AEADConfig{
146147
DefaultMode: packet.AEADModeGCM,
147148
},
148149
CompressionConfiguration: &packet.CompressionConfig{
149150
Level: 6,
150151
},
152+
S2kKeyEncryption: &s2k.Config{
153+
S2KMode: s2k.IteratedSaltedS2K,
154+
Hash: crypto.SHA256,
155+
S2KCount: 65536,
156+
},
151157
DisableIntendedRecipients: true,
152158
AllowAllPublicKeyAlgorithms: true,
153159
AllowWeakRSA: true,

0 commit comments

Comments
 (0)