Skip to content

Commit 4aeb309

Browse files
committed
feat: Update key encryption in proton profile
- Set key encryption cipher to aes-256 - Set s2k count to 65536
1 parent 9965642 commit 4aeb309

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
@@ -79,13 +79,19 @@ func ProtonV1() *Custom {
7979
SetKeyAlgorithm: setKeyAlgorithm,
8080
Hash: crypto.SHA512,
8181
CipherEncryption: packet.CipherAES256,
82+
CipherKeyEncryption: packet.CipherAES256,
8283
CompressionAlgorithm: packet.CompressionZLIB,
8384
KeyGenAeadEncryption: &packet.AEADConfig{
8485
DefaultMode: packet.AEADModeGCM,
8586
},
8687
CompressionConfiguration: &packet.CompressionConfig{
8788
Level: 6,
8889
},
90+
S2kKeyEncryption: &s2k.Config{
91+
S2KMode: s2k.IteratedSaltedS2K,
92+
Hash: crypto.SHA256,
93+
S2KCount: 65536,
94+
},
8995
DisableIntendedRecipients: true,
9096
AllowAllPublicKeyAlgorithms: true,
9197
AllowWeakRSA: true,

0 commit comments

Comments
 (0)