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

Port UnlockSecretKey method

This commit is contained in:
Paul Schaub 2025-04-02 15:27:49 +02:00
parent cad89b9bde
commit 54d83daee5
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -111,5 +111,9 @@ class UnlockSecretKey {
secretKey, SecretKeyRingProtector.unlockSingleKeyWith(passphrase, secretKey))
}
}
@JvmStatic
fun unlockSecretKey(secretKey: OpenPGPSecretKey, passphrase: Passphrase): OpenPGPPrivateKey =
unlockSecretKey(secretKey, SecretKeyRingProtector.unlockAnyKeyWith(passphrase))
}
}