extractPrivateKey

fun extractPrivateKey(secretKey: PGPSecretKey, passphrase: CharArray): PGPPrivateKey

Unlocks a secret key with passphrase, falling back to the alternate operator backend on failure.

Throws

if both BC and JCA decryptors fail (wrong passphrase or corrupt packet).