ELC
public struct ELC
Use-case ELC #14.7.2.2 and #14.7.2.3
-
Mutual authentication with ELC - step 1 #14.7.2.2.1
Declaration
Swift
public static func step1a(keyRef: Data) throws -> HealthCardCommand
Parameters
keyRef
12-bytes long public key reference
Return Value
the ELC step 1 command
-
Exchange session key - step 2 #14.7.2.2.2
Declaration
Swift
public static func step2a(ephemeralPK: Data) throws -> HealthCardCommand
Parameters
ephemeralPK
the point on the curve of the public key exchanged
Return Value
the ELC step 2 command
-
Start ELC mutual authentication - step 1b #14.7.2.3.1
Declaration
Swift
public static func step1b() -> HealthCardCommand
Return Value
ELC step 1b command
-
Finish ELC authentication - step 2b #14.7.2.3.2
Declaration
Swift
public static func step2b(cmd data: Data) throws -> HealthCardCommand
Parameters
data
the cmd data. Must be 76 bytes long
Return Value