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:
parent
6f3808466f
commit
1afcbacb04
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue