Misc

public struct Misc

Builder representing Miscellaneous Commands in gemSpec_COS#14.9

  • Use case verify COS Fingerprint gemSpec_COS#14.9.2.1

    Throws

    when prefix is not 128 long

    Declaration

    Swift

    public static func fingerprint(for prefix: Data) throws -> HealthCardCommand

    Parameters

    prefix

    the prefix data 128 bytes

    Return Value

    The Fingerprint command

  • Asymmetric Key Pair Generation (GAKP) modes

    See more

    Declaration

    Swift

    public enum GenerationMode
  • Generate an Asymmetric Key Pair - gemSpec_COS#14.9.3

    Declaration

    Swift

    public static func generateAsymmetricKeyPair(mode: GenerationMode) -> HealthCardCommand

    Parameters

    mode

    The generation mode to use

    Return Value

    The GAKP command

  • ChallengeParameter to specify challenge mode in gemSpec_COS#14.9.4

    See more

    Declaration

    Swift

    public enum ChallengeParameter
  • Get Challenge - gemSpec_COS#14.9.4

    Declaration

    Swift

    public static func challenge(mode: ChallengeParameter) -> HealthCardCommand

    Parameters

    mode

    The crypto mode to request a challenge for

    Return Value

    The GetChallenge command

  • Get random bytes with given length - gemSpec_COS#14.9.5

    Declaration

    Swift

    public static func random(length: Int) throws -> HealthCardCommand
  • List all Public Keys - gemSpec_COS#14.9.7

    Declaration

    Swift

    public static func listPublicKeys() -> HealthCardCommand

    Return Value

    The List Public Key command

  • Open logic channel - gemSpec_COS#14.9.8.1

    Declaration

    Swift

    public static func openLogicChannel() -> HealthCardCommand

    Return Value

    Open logic channel command

  • Close logic channel - gemSpec_COS#14.9.8.2

    Declaration

    Swift

    public static func closeLogicChannel(number: UInt8) -> HealthCardCommand

    Parameters

    number

    The channel number that should be closed

    Return Value

    Close channel command

  • Reset logic channel - gemSpec_COS#14.9.8.3

    Declaration

    Swift

    public static func resetLogicChannel(number: UInt8) -> HealthCardCommand

    Parameters

    number

    The channel number to reset

    Return Value

    Reset logic channel command

  • Reset Application (channel context) - gemSpec_COS#14.9.8.4

    Declaration

    Swift

    public static func resetApplication() -> HealthCardCommand

    Return Value

    Reset command