pub fn tsk_to_private_key_import(
key: &SignedSecretKey,
) -> Result<(PrivateKeyImport, KeyMechanism), Error>Expand description
Converts an OpenPGP Transferable Secret Key into PrivateKeyImport object.
ยงErrors
Returns an Error if creating a PrivateKeyImport from key_data is not
possible.
Returns an crate::key::Error::InvalidKeyLengthRsa if key_data is an RSA public key and is
shorter than crate::key::base::MIN_RSA_BIT_LENGTH.