1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2025-09-10 18:59: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 2ae9c94841
commit b24d0ef99c
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

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