AlfioEmanueleFresta / xdg-credentials-portal

FIDO2 (WebAuthn) and FIDO U2F platform library for Linux written in Rust; includes a proposal for a new D-Bus Portal interface for FIDO2, accessible from Flatpak apps and Snaps 🔑
GNU Lesser General Public License v2.1
360 stars 13 forks source link

Hypersecu Hyperfido Pro Mini Pro Mini does not work #41

Open casept opened 11 months ago

casept commented 11 months ago
$ cargo run --example u2f_hid
    Finished dev [unoptimized + debuginfo] target(s) in 0.07s
     Running `target/debug/examples/u2f_hid`
Found 1 devices.
Winking device: HS HyperFIDO (r13057)
Registration request sent (timeout: 10s).
Error: Ctap(InvalidLength)

This key works fine in Firefox and on Android.

casept commented 11 months ago

Running with RUST_LOG=trace:

$ cargo run --example u2f_hid
    Finished dev [unoptimized + debuginfo] target(s) in 0.07s
     Running `target/debug/examples/u2f_hid`
  2023-10-30T18:50:24.406223Z  INFO libwebauthn::transport::hid::device: Listing available HID devices, count: 1
    at libwebauthn/src/transport/hid/device.rs:77
    in libwebauthn::transport::hid::device::list_devices

  2023-10-30T18:50:24.406258Z DEBUG libwebauthn::transport::hid::device: devices: [HidDevice { backend: HidApiDevice(HidDeviceInfo { vendor_id: 11471, product_id: 2132 }) }]
    at libwebauthn/src/transport/hid/device.rs:78
    in libwebauthn::transport::hid::device::list_devices

Found 1 devices.
Winking device: HS HyperFIDO (r13057)
  2023-10-30T18:50:24.460587Z DEBUG libwebauthn::transport::hid::channel: Sending packet as HID report, packet: 0, len: 65
    at libwebauthn/src/transport/hid/channel.rs:209
    in libwebauthn::transport::hid::channel::hid_send with , cmd: Init, payload_len: 8
    in libwebauthn::transport::hid::channel::init
    in libwebauthn::transport::hid::device::wink with , dev: HS HyperFIDO (r13057)

  2023-10-30T18:50:24.460697Z TRACE libwebauthn::transport::hid::channel: report: [0, 255, 255, 255, 255, 134, 0, 8, 172, 205, 79, 183, 130, 37, 31, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
    at libwebauthn/src/transport/hid/channel.rs:210
    in libwebauthn::transport::hid::channel::hid_send with , cmd: Init, payload_len: 8
    in libwebauthn::transport::hid::channel::init
    in libwebauthn::transport::hid::device::wink with , dev: HS HyperFIDO (r13057)

  2023-10-30T18:50:24.463085Z DEBUG libwebauthn::transport::hid::channel: Received HID report, len: 64
    at libwebauthn/src/transport/hid/channel.rs:281
    in libwebauthn::transport::hid::channel::hid_recv
    in libwebauthn::transport::hid::channel::init
    in libwebauthn::transport::hid::device::wink with , dev: HS HyperFIDO (r13057)

  2023-10-30T18:50:24.463125Z TRACE libwebauthn::transport::hid::channel: report: [255, 255, 255, 255, 134, 0, 17, 172, 205, 79, 183, 130, 37, 31, 16, 0, 0, 0, 1, 2, 1, 0, 1, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
    at libwebauthn/src/transport/hid/channel.rs:282
    in libwebauthn::transport::hid::channel::hid_recv
    in libwebauthn::transport::hid::channel::init
    in libwebauthn::transport::hid::device::wink with , dev: HS HyperFIDO (r13057)

  2023-10-30T18:50:24.463167Z DEBUG libwebauthn::transport::hid::channel: Received U2F HID response, cmd: Init, payload_len: 17
    at libwebauthn/src/transport/hid/channel.rs:294
    in libwebauthn::transport::hid::channel::hid_recv
    in libwebauthn::transport::hid::channel::init
    in libwebauthn::transport::hid::device::wink with , dev: HS HyperFIDO (r13057)

  2023-10-30T18:50:24.463187Z TRACE libwebauthn::transport::hid::channel: response: HidMessage { cid: 4294967295, cmd: Init, payload: [172, 205, 79, 183, 130, 37, 31, 16, 0, 0, 0, 1, 2, 1, 0, 1, 7] }
    at libwebauthn/src/transport/hid/channel.rs:295
    in libwebauthn::transport::hid::channel::hid_recv
    in libwebauthn::transport::hid::channel::init
    in libwebauthn::transport::hid::device::wink with , dev: HS HyperFIDO (r13057)

  2023-10-30T18:50:24.463228Z DEBUG libwebauthn::transport::hid::channel: Device init complete, init: InitResponse { cid: 1, protocol_version: 2, version_major: 1, version_minor: 0, version_build: 1, caps: Caps(WINK | CBOR) }
    at libwebauthn/src/transport/hid/channel.rs:126
    in libwebauthn::transport::hid::channel::init
    in libwebauthn::transport::hid::device::wink with , dev: HS HyperFIDO (r13057)

  2023-10-30T18:50:24.463281Z DEBUG libwebauthn::transport::hid::channel: Sending packet as HID report, packet: 0, len: 65
    at libwebauthn/src/transport/hid/channel.rs:209
    in libwebauthn::transport::hid::channel::hid_send with , cmd: Wink, payload_len: 0
    in libwebauthn::transport::hid::channel::wink
    in libwebauthn::transport::hid::device::wink with , dev: HS HyperFIDO (r13057)

  2023-10-30T18:50:24.463307Z TRACE libwebauthn::transport::hid::channel: report: [0, 0, 0, 0, 1, 136, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
    at libwebauthn/src/transport/hid/channel.rs:210
    in libwebauthn::transport::hid::channel::hid_send with , cmd: Wink, payload_len: 0
    in libwebauthn::transport::hid::channel::wink
    in libwebauthn::transport::hid::device::wink with , dev: HS HyperFIDO (r13057)

  2023-10-30T18:50:26.466901Z DEBUG libwebauthn::transport::hid::channel: Sending packet as HID report, packet: 0, len: 65
    at libwebauthn/src/transport/hid/channel.rs:209
    in libwebauthn::transport::hid::channel::hid_send with , cmd: Cancel, payload_len: 0
    in libwebauthn::transport::hid::channel::hid_cancel
    in libwebauthn::transport::hid::channel::drop with , dev: HS HyperFIDO (r13057)
    in libwebauthn::transport::hid::device::wink with , dev: HS HyperFIDO (r13057)

  2023-10-30T18:50:26.467002Z TRACE libwebauthn::transport::hid::channel: report: [0, 0, 0, 0, 1, 145, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
    at libwebauthn/src/transport/hid/channel.rs:210
    in libwebauthn::transport::hid::channel::hid_send with , cmd: Cancel, payload_len: 0
    in libwebauthn::transport::hid::channel::hid_cancel
    in libwebauthn::transport::hid::channel::drop with , dev: HS HyperFIDO (r13057)
    in libwebauthn::transport::hid::device::wink with , dev: HS HyperFIDO (r13057)

  2023-10-30T18:50:26.523398Z DEBUG libwebauthn::transport::hid::channel: Sending packet as HID report, packet: 0, len: 65
    at libwebauthn/src/transport/hid/channel.rs:209
    in libwebauthn::transport::hid::channel::hid_send with , cmd: Init, payload_len: 8
    in libwebauthn::transport::hid::channel::init

  2023-10-30T18:50:26.523483Z TRACE libwebauthn::transport::hid::channel: report: [0, 255, 255, 255, 255, 134, 0, 8, 222, 250, 204, 30, 125, 32, 227, 138, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
    at libwebauthn/src/transport/hid/channel.rs:210
    in libwebauthn::transport::hid::channel::hid_send with , cmd: Init, payload_len: 8
    in libwebauthn::transport::hid::channel::init

  2023-10-30T18:50:26.527170Z DEBUG libwebauthn::transport::hid::channel: Received HID report, len: 64
    at libwebauthn/src/transport/hid/channel.rs:281
    in libwebauthn::transport::hid::channel::hid_recv
    in libwebauthn::transport::hid::channel::init

  2023-10-30T18:50:26.527278Z TRACE libwebauthn::transport::hid::channel: report: [255, 255, 255, 255, 134, 0, 17, 222, 250, 204, 30, 125, 32, 227, 138, 0, 0, 0, 2, 2, 1, 0, 1, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
    at libwebauthn/src/transport/hid/channel.rs:282
    in libwebauthn::transport::hid::channel::hid_recv
    in libwebauthn::transport::hid::channel::init

  2023-10-30T18:50:26.527351Z DEBUG libwebauthn::transport::hid::channel: Received U2F HID response, cmd: Init, payload_len: 17
    at libwebauthn/src/transport/hid/channel.rs:294
    in libwebauthn::transport::hid::channel::hid_recv
    in libwebauthn::transport::hid::channel::init

  2023-10-30T18:50:26.527390Z TRACE libwebauthn::transport::hid::channel: response: HidMessage { cid: 4294967295, cmd: Init, payload: [222, 250, 204, 30, 125, 32, 227, 138, 0, 0, 0, 2, 2, 1, 0, 1, 7] }
    at libwebauthn/src/transport/hid/channel.rs:295
    in libwebauthn::transport::hid::channel::hid_recv
    in libwebauthn::transport::hid::channel::init

  2023-10-30T18:50:26.527485Z DEBUG libwebauthn::transport::hid::channel: Device init complete, init: InitResponse { cid: 2, protocol_version: 2, version_major: 1, version_minor: 0, version_build: 1, caps: Caps(WINK | CBOR) }
    at libwebauthn/src/transport/hid/channel.rs:126
    in libwebauthn::transport::hid::channel::init

Registration request sent (timeout: 10s).
  2023-10-30T18:50:26.527794Z DEBUG libwebauthn::transport::hid::channel: Sending APDU request, cid: 2
    at libwebauthn/src/transport/hid/channel.rs:385
    in libwebauthn::proto::ctap1::protocol::ctap1_version
    in libwebauthn::u2f::u2f_negotiate_protocol
    in libwebauthn::u2f::u2f_register with , dev: HS HyperFIDO (r13057)

  2023-10-30T18:50:26.527880Z TRACE libwebauthn::transport::hid::channel: request: ApduRequest { ins: 3, p1: 0, p2: 0, data: None, response_max_length: Some(256) }
    at libwebauthn/src/transport/hid/channel.rs:386
    in libwebauthn::proto::ctap1::protocol::ctap1_version
    in libwebauthn::u2f::u2f_negotiate_protocol
    in libwebauthn::u2f::u2f_register with , dev: HS HyperFIDO (r13057)

  2023-10-30T18:50:26.527935Z DEBUG libwebauthn::transport::hid::channel: Sending packet as HID report, packet: 0, len: 65
    at libwebauthn/src/transport/hid/channel.rs:209
    in libwebauthn::transport::hid::channel::hid_send with , cmd: Msg, payload_len: 7
    in libwebauthn::proto::ctap1::protocol::ctap1_version
    in libwebauthn::u2f::u2f_negotiate_protocol
    in libwebauthn::u2f::u2f_register with , dev: HS HyperFIDO (r13057)

  2023-10-30T18:50:26.527954Z TRACE libwebauthn::transport::hid::channel: report: [0, 0, 0, 0, 2, 131, 0, 7, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
    at libwebauthn/src/transport/hid/channel.rs:210
    in libwebauthn::transport::hid::channel::hid_send with , cmd: Msg, payload_len: 7
    in libwebauthn::proto::ctap1::protocol::ctap1_version
    in libwebauthn::u2f::u2f_negotiate_protocol
    in libwebauthn::u2f::u2f_register with , dev: HS HyperFIDO (r13057)

  2023-10-30T18:50:26.531086Z DEBUG libwebauthn::transport::hid::channel: Received HID report, len: 64
    at libwebauthn/src/transport/hid/channel.rs:281
    in libwebauthn::transport::hid::channel::hid_recv
    in libwebauthn::proto::ctap1::protocol::ctap1_version
    in libwebauthn::u2f::u2f_negotiate_protocol
    in libwebauthn::u2f::u2f_register with , dev: HS HyperFIDO (r13057)

  2023-10-30T18:50:26.531113Z TRACE libwebauthn::transport::hid::channel: report: [0, 0, 0, 2, 131, 0, 8, 85, 50, 70, 95, 86, 50, 144, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
    at libwebauthn/src/transport/hid/channel.rs:282
    in libwebauthn::transport::hid::channel::hid_recv
    in libwebauthn::proto::ctap1::protocol::ctap1_version
    in libwebauthn::u2f::u2f_negotiate_protocol
    in libwebauthn::u2f::u2f_register with , dev: HS HyperFIDO (r13057)

  2023-10-30T18:50:26.531139Z DEBUG libwebauthn::transport::hid::channel: Received U2F HID response, cmd: Msg, payload_len: 8
    at libwebauthn/src/transport/hid/channel.rs:294
    in libwebauthn::transport::hid::channel::hid_recv
    in libwebauthn::proto::ctap1::protocol::ctap1_version
    in libwebauthn::u2f::u2f_negotiate_protocol
    in libwebauthn::u2f::u2f_register with , dev: HS HyperFIDO (r13057)

  2023-10-30T18:50:26.531163Z TRACE libwebauthn::transport::hid::channel: response: HidMessage { cid: 2, cmd: Msg, payload: [85, 50, 70, 95, 86, 50, 144, 0] }
    at libwebauthn/src/transport/hid/channel.rs:295
    in libwebauthn::transport::hid::channel::hid_recv
    in libwebauthn::proto::ctap1::protocol::ctap1_version
    in libwebauthn::u2f::u2f_negotiate_protocol
    in libwebauthn::u2f::u2f_register with , dev: HS HyperFIDO (r13057)

  2023-10-30T18:50:26.531211Z DEBUG libwebauthn::transport::hid::channel: Received APDU response
    at libwebauthn/src/transport/hid/channel.rs:397
    in libwebauthn::proto::ctap1::protocol::ctap1_version
    in libwebauthn::u2f::u2f_negotiate_protocol
    in libwebauthn::u2f::u2f_register with , dev: HS HyperFIDO (r13057)

  2023-10-30T18:50:26.531237Z TRACE libwebauthn::transport::hid::channel: apdu_response: ApduResponse { data: Some([85, 50, 70, 95, 86, 50]), sw1: 144, sw2: 0 }
    at libwebauthn/src/transport/hid/channel.rs:398
    in libwebauthn::proto::ctap1::protocol::ctap1_version
    in libwebauthn::u2f::u2f_negotiate_protocol
    in libwebauthn::u2f::u2f_register with , dev: HS HyperFIDO (r13057)

  2023-10-30T18:50:26.531277Z DEBUG libwebauthn::proto::ctap1::protocol: CTAP1 version response, response.version: U2fV2
    at libwebauthn/src/proto/ctap1/protocol.rs:43
    in libwebauthn::proto::ctap1::protocol::ctap1_version
    in libwebauthn::u2f::u2f_negotiate_protocol
    in libwebauthn::u2f::u2f_register with , dev: HS HyperFIDO (r13057)

  2023-10-30T18:50:26.531340Z DEBUG libwebauthn::proto::ctap1::protocol: CTAP1 register request, request.require_user_presence: false
    at libwebauthn/src/proto/ctap1/protocol.rs:52
    in libwebauthn::proto::ctap1::protocol::ctap1_register
    in libwebauthn::u2f::u2f_register with , dev: HS HyperFIDO (r13057)

  2023-10-30T18:50:26.531366Z TRACE libwebauthn::proto::ctap1::protocol: request: Ctap1RegisterRequest { version: U2fV2, app_id_hash: [70, 35, 6, 9, 28, 73, 178, 211, 22, 193, 218, 215, 50, 242, 3, 224, 68, 45, 106, 160, 253, 254, 138, 10, 44, 21, 234, 159, 77, 138, 238, 77], challenge: [214, 244, 61, 155, 24, 168, 158, 173, 39, 128, 41, 227, 15, 236, 19, 178, 253, 115, 81, 42, 198, 70, 209, 106, 27, 108, 79, 211, 212, 155, 103, 189], registered_keys: [], timeout: 10s, require_user_presence: false }
    at libwebauthn/src/proto/ctap1/protocol.rs:53
    in libwebauthn::proto::ctap1::protocol::ctap1_register
    in libwebauthn::u2f::u2f_register with , dev: HS HyperFIDO (r13057)

  2023-10-30T18:50:26.531402Z DEBUG libwebauthn::proto::ctap1::protocol: Preflight requests, count: 0
    at libwebauthn/src/proto/ctap1/protocol.rs:56
    in libwebauthn::proto::ctap1::protocol::ctap1_register
    in libwebauthn::u2f::u2f_register with , dev: HS HyperFIDO (r13057)

  2023-10-30T18:50:26.531437Z DEBUG libwebauthn::transport::hid::channel: Sending APDU request, cid: 2
    at libwebauthn/src/transport/hid/channel.rs:385
    in libwebauthn::proto::ctap1::protocol::ctap1_register
    in libwebauthn::u2f::u2f_register with , dev: HS HyperFIDO (r13057)

  2023-10-30T18:50:26.531461Z TRACE libwebauthn::transport::hid::channel: request: ApduRequest { ins: 1, p1: 3, p2: 0, data: Some([214, 244, 61, 155, 24, 168, 158, 173, 39, 128, 41, 227, 15, 236, 19, 178, 253, 115, 81, 42, 198, 70, 209, 106, 27, 108, 79, 211, 212, 155, 103, 189, 70, 35, 6, 9, 28, 73, 178, 211, 22, 193, 218, 215, 50, 242, 3, 224, 68, 45, 106, 160, 253, 254, 138, 10, 44, 21, 234, 159, 77, 138, 238, 77]), response_max_length: Some(256) }
    at libwebauthn/src/transport/hid/channel.rs:386
    in libwebauthn::proto::ctap1::protocol::ctap1_register
    in libwebauthn::u2f::u2f_register with , dev: HS HyperFIDO (r13057)

  2023-10-30T18:50:26.531519Z DEBUG libwebauthn::transport::hid::channel: Sending packet as HID report, packet: 0, len: 65
    at libwebauthn/src/transport/hid/channel.rs:209
    in libwebauthn::transport::hid::channel::hid_send with , cmd: Msg, payload_len: 71
    in libwebauthn::proto::ctap1::protocol::ctap1_register
    in libwebauthn::u2f::u2f_register with , dev: HS HyperFIDO (r13057)

  2023-10-30T18:50:26.531548Z TRACE libwebauthn::transport::hid::channel: report: [0, 0, 0, 0, 2, 131, 0, 71, 0, 1, 3, 0, 0, 0, 64, 214, 244, 61, 155, 24, 168, 158, 173, 39, 128, 41, 227, 15, 236, 19, 178, 253, 115, 81, 42, 198, 70, 209, 106, 27, 108, 79, 211, 212, 155, 103, 189, 70, 35, 6, 9, 28, 73, 178, 211, 22, 193, 218, 215, 50, 242, 3, 224, 68, 45]
    at libwebauthn/src/transport/hid/channel.rs:210
    in libwebauthn::transport::hid::channel::hid_send with , cmd: Msg, payload_len: 71
    in libwebauthn::proto::ctap1::protocol::ctap1_register
    in libwebauthn::u2f::u2f_register with , dev: HS HyperFIDO (r13057)

  2023-10-30T18:50:26.533079Z DEBUG libwebauthn::transport::hid::channel: Sending packet as HID report, packet: 1, len: 65
    at libwebauthn/src/transport/hid/channel.rs:209
    in libwebauthn::transport::hid::channel::hid_send with , cmd: Msg, payload_len: 71
    in libwebauthn::proto::ctap1::protocol::ctap1_register
    in libwebauthn::u2f::u2f_register with , dev: HS HyperFIDO (r13057)

  2023-10-30T18:50:26.533110Z TRACE libwebauthn::transport::hid::channel: report: [0, 0, 0, 0, 2, 0, 106, 160, 253, 254, 138, 10, 44, 21, 234, 159, 77, 138, 238, 77, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
    at libwebauthn/src/transport/hid/channel.rs:210
    in libwebauthn::transport::hid::channel::hid_send with , cmd: Msg, payload_len: 71
    in libwebauthn::proto::ctap1::protocol::ctap1_register
    in libwebauthn::u2f::u2f_register with , dev: HS HyperFIDO (r13057)

  2023-10-30T18:50:26.537097Z DEBUG libwebauthn::transport::hid::channel: Received HID report, len: 64
    at libwebauthn/src/transport/hid/channel.rs:281
    in libwebauthn::transport::hid::channel::hid_recv
    in libwebauthn::proto::ctap1::protocol::ctap1_register
    in libwebauthn::u2f::u2f_register with , dev: HS HyperFIDO (r13057)

  2023-10-30T18:50:26.537141Z TRACE libwebauthn::transport::hid::channel: report: [0, 0, 0, 2, 131, 0, 2, 103, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
    at libwebauthn/src/transport/hid/channel.rs:282
    in libwebauthn::transport::hid::channel::hid_recv
    in libwebauthn::proto::ctap1::protocol::ctap1_register
    in libwebauthn::u2f::u2f_register with , dev: HS HyperFIDO (r13057)

  2023-10-30T18:50:26.537183Z DEBUG libwebauthn::transport::hid::channel: Received U2F HID response, cmd: Msg, payload_len: 2
    at libwebauthn/src/transport/hid/channel.rs:294
    in libwebauthn::transport::hid::channel::hid_recv
    in libwebauthn::proto::ctap1::protocol::ctap1_register
    in libwebauthn::u2f::u2f_register with , dev: HS HyperFIDO (r13057)

  2023-10-30T18:50:26.537225Z TRACE libwebauthn::transport::hid::channel: response: HidMessage { cid: 2, cmd: Msg, payload: [103, 0] }
    at libwebauthn/src/transport/hid/channel.rs:295
    in libwebauthn::transport::hid::channel::hid_recv
    in libwebauthn::proto::ctap1::protocol::ctap1_register
    in libwebauthn::u2f::u2f_register with , dev: HS HyperFIDO (r13057)

  2023-10-30T18:50:26.537279Z DEBUG libwebauthn::transport::hid::channel: Received APDU response
    at libwebauthn/src/transport/hid/channel.rs:397
    in libwebauthn::proto::ctap1::protocol::ctap1_register
    in libwebauthn::u2f::u2f_register with , dev: HS HyperFIDO (r13057)

  2023-10-30T18:50:26.537306Z TRACE libwebauthn::transport::hid::channel: apdu_response: ApduResponse { data: None, sw1: 103, sw2: 0 }
    at libwebauthn/src/transport/hid/channel.rs:398
    in libwebauthn::proto::ctap1::protocol::ctap1_register
    in libwebauthn::u2f::u2f_register with , dev: HS HyperFIDO (r13057)

  2023-10-30T18:50:26.537413Z DEBUG libwebauthn::transport::hid::channel: Sending packet as HID report, packet: 0, len: 65
    at libwebauthn/src/transport/hid/channel.rs:209
    in libwebauthn::transport::hid::channel::hid_send with , cmd: Cancel, payload_len: 0
    in libwebauthn::transport::hid::channel::hid_cancel
    in libwebauthn::transport::hid::channel::drop with , dev: HS HyperFIDO (r13057)

  2023-10-30T18:50:26.537448Z TRACE libwebauthn::transport::hid::channel: report: [0, 0, 0, 0, 2, 145, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
    at libwebauthn/src/transport/hid/channel.rs:210
    in libwebauthn::transport::hid::channel::hid_send with , cmd: Cancel, payload_len: 0
    in libwebauthn::transport::hid::channel::hid_cancel
    in libwebauthn::transport::hid::channel::drop with , dev: HS HyperFIDO (r13057)

Error: Ctap(InvalidLength)