Fix PGP key determinism on all platforms

This commit is contained in:
thePR0M3TH3AN
2025-07-04 18:39:50 -04:00
parent 435b7f363e
commit 51f907cbb0

View File

@@ -452,11 +452,11 @@ def derive_pgp_key(
uid = PGPUID.new(user_id) uid = PGPUID.new(user_id)
key.add_uid( key.add_uid(
uid, uid,
usage={ usage=[
KeyFlags.Sign, KeyFlags.Sign,
KeyFlags.EncryptCommunications, KeyFlags.EncryptCommunications,
KeyFlags.EncryptStorage, KeyFlags.EncryptStorage,
}, ],
hashes=[HashAlgorithm.SHA256], hashes=[HashAlgorithm.SHA256],
ciphers=[SymmetricKeyAlgorithm.AES256], ciphers=[SymmetricKeyAlgorithm.AES256],
compression=[CompressionAlgorithm.ZLIB], compression=[CompressionAlgorithm.ZLIB],