Implement set_uif_attestation()

This commit is contained in:
Heiko Schaefer 2022-05-24 18:34:33 +02:00
parent 15d457864c
commit ce03cc7e70
No known key found for this signature in database
GPG key ID: 4A849A1904CCBD7D

View file

@ -840,7 +840,13 @@ impl<'a> OpenPgpTransaction<'a> {
apdu::send_command(self.tx(), cmd, false)?.try_into()
}
// FIXME: UIF for Attestation key
/// Set UIF for Attestation key
pub fn set_uif_attestation(&mut self, uif: &UIF) -> Result<(), Error> {
log::info!("OpenPgpTransaction: set_uif_attestation");
let cmd = commands::put_data(Tags::UifAttestation, uif.as_bytes().to_vec());
apdu::send_command(self.tx(), cmd, false)?.try_into()
}
/// Generate Attestation (Yubico)
pub fn generate_attestation(&mut self, key_type: KeyType) -> Result<(), Error> {