APDU

Concrete APDU command + response implementation

  • Value for when wildcardShort for expected length encoding is needed

  • Value for when wildcardExtended for expected length encoding is needed

  • An APDU response per ISO/IEC 7816-4. It consists of a conditional body and a two byte trailer. This class does not attempt to semantically verify an APDU response.

    See also

    ResponseType
    See more

    Declaration

    Swift

  • An APDU Command per ISO/IEC 7816-4. Command APDU encoding options:

        case 1:  |CLA|INS|P1 |P2 |                                 len = 4
        case 2s: |CLA|INS|P1 |P2 |LE |                             len = 5
        case 3s: |CLA|INS|P1 |P2 |LC |...BODY...|                  len = 6..260
        case 4s: |CLA|INS|P1 |P2 |LC |...BODY...|LE |              len = 7..261
        case 2e: |CLA|INS|P1 |P2 |00 |LE1|LE2|                     len = 7
        case 3e: |CLA|INS|P1 |P2 |00 |LC1|LC2|...BODY...|          len = 8..65542
        case 4e: |CLA|INS|P1 |P2 |00 |LC1|LC2|...BODY...|LE1|LE2|  len =10..65544
    
        LE, LE1, LE2 may be 0x00.
        LC must not be 0x00 and LC1|LC2 must not be 0x00|0x00
    
    See more

    Declaration

    Swift