Skip to content

Commit 71079a1

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 7151629 commit 71079a1

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
@@ -119,13 +119,19 @@ func ProtonV1() *Custom {
119119
SetKeyAlgorithm: setKeyAlgorithm,
120120
Hash: crypto.SHA512,
121121
CipherEncryption: packet.CipherAES256,
122+
CipherKeyEncryption: packet.CipherAES256,
122123
CompressionAlgorithm: packet.CompressionZLIB,
123124
KeyGenAeadEncryption: &packet.AEADConfig{
124125
DefaultMode: packet.AEADModeGCM,
125126
},
126127
CompressionConfiguration: &packet.CompressionConfig{
127128
Level: 6,
128129
},
130+
S2kKeyEncryption: &s2k.Config{
131+
S2KMode: s2k.IteratedSaltedS2K,
132+
Hash: crypto.SHA256,
133+
S2KCount: 65536,
134+
},
129135
DisableIntendedRecipients: true,
130136
AllowAllPublicKeyAlgorithms: true,
131137
AllowWeakRSA: true,

0 commit comments

Comments
 (0)