mirror of
https://github.com/pgpainless/pgpainless.git
synced 2025-09-10 02:39:39 +02:00
Port UnlockSecretKey method
This commit is contained in:
parent
cad89b9bde
commit
54d83daee5
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