Skip to content

Commit

Permalink
feat: Update key encryption in proton profile
Browse files Browse the repository at this point in the history
- Set key encryption cipher to aes-256
- Set s2k count to 65536
  • Loading branch information
lubux authored and twiss committed Nov 12, 2024
1 parent 29afc71 commit 39248aa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions profile/preset.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,19 @@ func ProtonV1() *Custom {
SetKeyAlgorithm: setKeyAlgorithm,
Hash: crypto.SHA512,
CipherEncryption: packet.CipherAES256,
CipherKeyEncryption: packet.CipherAES256,
CompressionAlgorithm: packet.CompressionZLIB,
KeyGenAeadEncryption: &packet.AEADConfig{
DefaultMode: packet.AEADModeGCM,
},
CompressionConfiguration: &packet.CompressionConfig{
Level: 6,
},
S2kKeyEncryption: &s2k.Config{
S2KMode: s2k.IteratedSaltedS2K,
Hash: crypto.SHA256,
S2KCount: 65536,
},
DisableIntendedRecipients: true,
AllowAllPublicKeyAlgorithms: true,
AllowWeakRSA: true,
Expand Down

0 comments on commit 39248aa

Please sign in to comment.