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 longDeclaration
Swift
public static func fingerprint(for prefix: Data) throws -> HealthCardCommandParameters
prefixthe prefix data 128 bytes
Return Value
The Fingerprint command
-
Asymmetric Key Pair Generation (GAKP) modes
See moreDeclaration
Swift
public enum GenerationMode -
Generate an Asymmetric Key Pair - gemSpec_COS#14.9.3
Declaration
Swift
public static func generateAsymmetricKeyPair(mode: GenerationMode) -> HealthCardCommandParameters
modeThe generation mode to use
Return Value
The GAKP command
-
ChallengeParameter to specify challenge mode in gemSpec_COS#14.9.4
See moreDeclaration
Swift
public enum ChallengeParameter -
Get Challenge - gemSpec_COS#14.9.4
Declaration
Swift
public static func challenge(mode: ChallengeParameter) -> HealthCardCommandParameters
modeThe 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() -> HealthCardCommandReturn Value
The List Public Key command
-
Open logic channel - gemSpec_COS#14.9.8.1
Declaration
Swift
public static func openLogicChannel() -> HealthCardCommandReturn Value
Open logic channel command
-
Close logic channel - gemSpec_COS#14.9.8.2
Declaration
Swift
public static func closeLogicChannel(number: UInt8) -> HealthCardCommandParameters
numberThe 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) -> HealthCardCommandParameters
numberThe 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() -> HealthCardCommandReturn Value
Reset command