DGTag

internal enum DGTag : ASN1Tag, CaseIterable
extension DGTag: ASN1TagDecodable

Enumeration of Data Group Tags used in ASN.1 encoding.

See also

DataGroup and DGDecoder
  • COM

    Declaration

    Swift

    case COM = 0x60
  • DG1

    Declaration

    Swift

    case DG1 = 0x61
  • DG2

    Declaration

    Swift

    case DG2 = 0x75
  • DG3

    Declaration

    Swift

    case DG3 = 0x63
  • DG4

    Declaration

    Swift

    case DG4 = 0x76
  • DG5

    Declaration

    Swift

    case DG5 = 0x65
  • DG6

    Declaration

    Swift

    case DG6 = 0x66
  • DG7

    Declaration

    Swift

    case DG7 = 0x67
  • DG8

    Declaration

    Swift

    case DG8 = 0x68
  • DG9

    Declaration

    Swift

    case DG9 = 0x69
  • Declaration

    Swift

    case DG10 = 0x6A
  • Declaration

    Swift

    case DG11 = 0x6B
  • Declaration

    Swift

    case DG12 = 0x6C
  • Declaration

    Swift

    case DG13 = 0x6D
  • Declaration

    Swift

    case DG14 = 0x6E
  • Declaration

    Swift

    case DG15 = 0x6F
  • Declaration

    Swift

    case DG16 = 0x70
  • SOD

    Declaration

    Swift

    case SOD = 0x77
  • Human-readable name for the Data Group.

    Declaration

    Swift

    internal var name: String { get }
  • Elementary File (EF) Identifier for the Data Group used to select and read it with APDU command.

    Declaration

    Swift

    internal var EFIdentifier: [UInt8] { get }
  • Extracts the short EF Identifier from the EFIdentifier.

    Declaration

    Swift

    internal var shortEFIdentifier: UInt8 { get }
  • Retrieves the Data Group Tag from its human-readable name.

    Declaration

    Swift

    internal static func from(name: String) -> `Self`?

    Parameters

    name

    The Data Group name.

    Return Value

    A Data Group Tag, if found.

  • Retrieves the Data Group Tag from its short EF Identifier.

    Declaration

    Swift

    internal static func from(shortIdentifier: UInt8) -> `Self`?

    Parameters

    shortIdentifier

    The Data Group EF short identifier.

    Return Value

    A Data Group Tag, if found