PsoChecksum

public struct PsoChecksum

Builder representing Compute Cryptographic Checksum in gemSpec_COS#14.8.1

  • Use case Compute Cryptographic Checksum gemSpec_COS#14.8.1

    Declaration

    Swift

    public static func hashUsingAES(incrementSSCmac flag: Bool, data: Data) throws -> HealthCardCommand

    Parameters

    flag

    specify whether the SSC mac should increment

    data

    The data to protect

    Return Value

    The Checksum Command

  • Use case Compute Cryptographic Checksum gemSpec_COS#14.8.1

    Declaration

    Swift

    public static func hashUsingDES(data: Data) throws -> HealthCardCommand

    Parameters

    data

    The data to protect

    Return Value

    The Checksum command

  • Use case Verify Cryptographic Checksum gemSpec_COS#14.8.8

    Throws

    When hash is not 8-Octets long

    Declaration

    Swift

    public static func verify(data: Data, mac hash: Data) throws -> HealthCardCommand

    Parameters

    data

    The (mac-protected) message to verify

    hash

    The MAC hash 8-Octets

    Return Value

    The Verify Checksum command