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

Document KOpenPGP mitigations

This commit is contained in:
Paul Schaub 2025-05-15 14:31:40 +02:00
parent a31cc46c93
commit 828e31e12c
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -36,6 +36,14 @@ class Policy(
NotationRegistry(),
AlgorithmSuite.defaultAlgorithmSuite)
/**
* Decide, whether to sanitize public key parameters when unlocking OpenPGP secret keys.
* OpenPGP v4 keys are susceptible to a class of attacks, where an attacker with access
* to the locked key material (e.g. a cloud email provider) might manipulate unprotected
* public key parameters of the key, leading to potential secret key leakage.
*
* @see [Key Overwriting (KO) Attacks against OpenPGP](https://www.kopenpgp.com/)
*/
var enableKeyParameterValidation = false
fun copy() = Builder(this)