Function openpgp_card_sequoia::upload_key [−][src]
pub fn upload_key(
oca: &mut CardAdmin,
vka: ValidErasedKeyAmalgamation<'_, SecretParts>,
key_type: KeyType,
password: Option<String>
) -> Result<(), OpenpgpCardError>
Expand description
Upload a ValidErasedKeyAmalgamation to the card as a specific KeyType.
The caller needs to make sure that vka
is suitable for key_type
.