Skip to content

Commit

Permalink
FIDO2 got the wrong bitmask.
Browse files Browse the repository at this point in the history
  • Loading branch information
jensutbult committed May 24, 2024
1 parent 1458420 commit a6581e4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions YubiKit/YubiKit/Management/Capability.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@ import Foundation
/// Identifies a feature (typically an application) on a YubiKey which may or may not be supported, and which can be enabled or disabled.
public enum Capability: UInt {
/// Identifies the YubiOTP application.
case OTP = 0x0001
case OTP = 0x0001
/// Identifies the U2F (CTAP1) portion of the FIDO application.
case U2F = 0x0002
case U2F = 0x0002
/// Identifies the OpenPGP application, implementing the OpenPGP Card protocol.
case OPENPGP = 0x0008
/// Identifies the PIV application, implementing the PIV protocol.
case PIV = 0x0010
case PIV = 0x0010
/// Identifies the OATH application, implementing the YKOATH protocol.
case OATH = 0x0020
case OATH = 0x0020
/// Identifies the HSMAUTH application.
case HSMAUTH = 0x0100
/// Identifies the FIDO2 (CTAP2) portion of the FIDO application.
case FIDO2 = 0x02000
case FIDO2 = 0x0200

var bit: UInt { self.rawValue }
}
Expand Down

0 comments on commit a6581e4

Please sign in to comment.