Yubico / yubikit-ios

Yubico Mobile iOS SDK - YubiKit
Apache License 2.0
194 stars 43 forks source link

Almost works: YubiKey 5Ci (Lightning side) on USB-C devices via Apple’s USB-C to Lightning adapter #144

Open keepassium opened 6 months ago

keepassium commented 6 months ago

We have confirmed that YubiKey 5Ci — the Lightning side of it — works with Yubikit as an MFI accessory on USB-C devices like iPhone 15. And I mean works as an MFI accessory, including the challenge-response mode. All it takes is Apple USB-C to Lightning adapter introduced at the end of 2023.

The only problem is that YubiKitDeviceCapabilities.supportsMFIAccessoryKey self-censors USB-devices as incompatible with MFI accessories. Our app uses an older version of YubiKit which did not know anything about iPhone 15, so it left MFI accessory interface enabled. And it worked, via Apple's adapter.

Would it be possible to extend YubiKitDeviceCapabilities with something like supportsMFIAccessoryWithAdapter?