Implement set_uif_attestation()
This commit is contained in:
parent
15d457864c
commit
ce03cc7e70
1 changed files with 7 additions and 1 deletions
|
@ -840,7 +840,13 @@ impl<'a> OpenPgpTransaction<'a> {
|
||||||
apdu::send_command(self.tx(), cmd, false)?.try_into()
|
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)
|
/// Generate Attestation (Yubico)
|
||||||
pub fn generate_attestation(&mut self, key_type: KeyType) -> Result<(), Error> {
|
pub fn generate_attestation(&mut self, key_type: KeyType) -> Result<(), Error> {
|
||||||
|
|
Loading…
Reference in a new issue