Skip to content

Commit 83481d9

Browse files
committed
feat: Update key encryption in proton profile
- Set key encryption cipher to aes-256 - Set s2k count to 65536
1 parent 78fc404 commit 83481d9

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
@@ -82,13 +82,19 @@ func ProtonV1() *Custom {
8282
SetKeyAlgorithm: setKeyAlgorithm,
8383
Hash: crypto.SHA512,
8484
CipherEncryption: packet.CipherAES256,
85+
CipherKeyEncryption: packet.CipherAES256,
8586
CompressionAlgorithm: packet.CompressionZLIB,
8687
KeyGenAeadEncryption: &packet.AEADConfig{
8788
DefaultMode: packet.AEADModeGCM,
8889
},
8990
CompressionConfiguration: &packet.CompressionConfig{
9091
Level: 6,
9192
},
93+
S2kKeyEncryption: &s2k.Config{
94+
S2KMode: s2k.IteratedSaltedS2K,
95+
Hash: crypto.SHA256,
96+
S2KCount: 65536,
97+
},
9298
DisableIntendedRecipients: true,
9399
AllowAllPublicKeyAlgorithms: true,
94100
AllowWeakRSA: true,

0 commit comments

Comments
 (0)