Skip to content

Latest commit

 

History

History
51 lines (30 loc) · 1.69 KB

File metadata and controls

51 lines (30 loc) · 1.69 KB

Large Blob

This command allows at least 1024 bytes of large blob data to be stored on Authenticators.
Spec: 6.10. authenticatorLargeBlobs (0x0C)

To use this feature, the Authenticator must implement LargeBlobs . check with enable_info_option()

fn is_supported(device: &FidoKeyHid) -> Result<bool> {
    if device
        .enable_info_option(&InfoOption::LargeBlobs)?
        .is_some()
    {
        Ok(true)
    } else {
        Ok(false)
    }
}

Example

get_large_blob()

Spec: 6.10.2. Reading and writing serialised data

let large_brob_data = device.get_large_blob()?;

Example

LargeBlobData

write_large_blob()

Spec: 6.10.2. Reading and writing serialised data

device.write_large_blob(Some(&pin), write_datas)?;

Example