Yubico / yubikit-ios

Yubico Mobile iOS SDK - YubiKit
Apache License 2.0
198 stars 44 forks source link

Add HMAC-SHA1 challenge response service #23

Closed imakhalova closed 4 years ago

imakhalova commented 4 years ago

Adding service that allows to take advantage of challenge-response YubiKey feature. This service is not returned in YubiKitManager instance, instead it relies on rawCommandService that returned by YubiKitManager. The reason behind is to make library more modularized for such features (to avoid including this service if they are not used by user). It requires user to watch connection to YubiKey and execute methods whenever such connection is established (accessory or NFC) - session is open. This PR doesn't include setting of secret for challenge response. User has to use YubiKey manager for that (or personalization tool).

Addressing this feature request: https://github.com/Yubico/yubikit-ios/issues/3