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:
parent
9c87e4f34f
commit
f6284fd59b
1 changed files with 4 additions and 0 deletions
|
@ -111,5 +111,9 @@ class UnlockSecretKey {
|
||||||
secretKey, SecretKeyRingProtector.unlockSingleKeyWith(passphrase, secretKey))
|
secretKey, SecretKeyRingProtector.unlockSingleKeyWith(passphrase, secretKey))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@JvmStatic
|
||||||
|
fun unlockSecretKey(secretKey: OpenPGPSecretKey, passphrase: Passphrase): OpenPGPPrivateKey =
|
||||||
|
unlockSecretKey(secretKey, SecretKeyRingProtector.unlockAnyKeyWith(passphrase))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue