1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2025-09-09 10:19:39 +02:00

Determine, whether to use AEAD by cosulting KeyRingProtectionSettings

This commit is contained in:
Paul Schaub 2025-03-20 20:02:55 +01:00
parent 6f3808466f
commit 1afcbacb04
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -57,7 +57,10 @@ class PGPainless(
creationTime: Date = Date() creationTime: Date = Date()
): OpenPGPKeyGenerator = ): OpenPGPKeyGenerator =
OpenPGPKeyGenerator( OpenPGPKeyGenerator(
implementation, version.numeric, version == OpenPGPKeyVersion.v6, creationTime) implementation,
version.numeric,
algorithmPolicy.keyProtectionSettings.aead,
creationTime)
.setAlgorithmSuite(algorithmPolicy.keyGenerationAlgorithmSuite) .setAlgorithmSuite(algorithmPolicy.keyGenerationAlgorithmSuite)
/** /**