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 committed Nov 7, 2024
1 parent 9965642 commit 4aeb309
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 @@ -79,13 +79,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 4aeb309

Please sign in to comment.