ISO 7816-4: GET RESPONSE and ENVELOPE command

Source: Internet
Author: User

Http://www.cardwerk.com/smartcards/smartcard_standard_ISO7816-4_7_transmission_interindustry_commands.aspx

7. transmission-oriented interindustry Commands

7.1 GET RESPONSE Command
7.2 ENVELOPE Command

It shall not being mandatory for all cards complying to this part of ISO/IEC 7816 to support all the described commands or AL L The options of a supported command.

When international interchange was required, a set of card system services and related commands and options shall be used a s defined in clause 9.

Table One provides a summary of the commands defined in this part of ISO/IEC 7816.

The impact of secure messaging (see 5.6) on the message structure was not described in this clause.

The list of error and warning conditions given in each clause 7.x.5 are not exhaustive (see 5.4.5).

7.1 GET RESPONSE command

7.1.1 Definition and scope
7.1.2 Conditional usage and security
7.1.3 Command Message
7.1.4 reponse Message (nominal case)
7.1.5 Status Conditions

7.1.1 Definition and scope

The GET RESPONSE command is used to transmit from the card to the interface device APDU (s) (or part of the APDUs) which OT Herwise could not being transmitted by the available protocols.

7.1.2 Conditional usage and security

No condition.

7.1.3 Command Message

Table 74-get RESPONSE command APDU
Cla As defined in 5.4.1
Ins ' C0 '
P1-p2 ' 0000 ' (other values is RFU)
Lc Field Empty
Data Field Empty
Le Field Maximum length of data expected in response

7.1.4 Response Message (nominal case)

Table 75-get RESPONSE RESPONSE APDU
Data Field (part of) APDU according to Le
Sw1-sw2 Status bytes

7.1.5 Status conditions

The following specific normal processing may occur:

sw1= ' + ' with SW2
    • ' xx ': Normal processing:more data bytes is available (' xx ' indicates a number of extra data bytes still available by sub Sequent GET RESPONSE).
The following specific warning condition may occur:sw1= ' + ' with sw2=
    • ' Bayi ': Part of returned data corrupted
The following specific error conditions may occur.
sw1= ' sw2= ' with
    • ' xx ': Wrong Length (the Lc field is incorrect)
sw1= ' 6A ' with sw2=
    • ' Incorrect ': Parameters p1-p2
sw1= ' 6C ' with sw2=
    • ' xx ': Wrong Length (wrong Le field, ' xx ' indicates the exact length)

7.2 ENVELOPE Command

7.2.1 Definition and scope
7.2.2 Conditional usage and security
7.2.3 Command Message
7.2.4 reponse Message (nominal case)
7.2.5 Status Conditions

7.2.1 Definition and scope

The ENVELOPE command is used to transmit APDU (s) or part of APDUs or any data string which otherwise could not being transmit Ted by the available protocols.

NOTE -the usage of ENVELOPE for SM was shown in annex F.

7.2.2 Conditional usage and security

No condition.

7.2.3 Command Message

Table 76-envelope Command APDU
Cla As defined in 5.4.1
Ins ' C2 '
P1-p2 ' 0000 ' (other values is RFU)
Lc Field Length of the subsequent data field
Data Field (part of) APDU
Le Field Empty of length of expected data

When the ENVELOPE command was used under t=0 for transmitting data strings, a empty data field in an ENVELOPE command APDU means end of data string.

7.1.4 Response Message (nominal case)

Table 77-envelope Response APDU
Data Field Empty or (part of) APDU according to Le
Sw1-sw2 Status bytes

NOTE -the status bytes belong to the ENVELOPE command. Status bytes of a command transmitted in the data field of the ENVELOPE command is found in the data field of the Enve LOPE Response.

7.2.5 Status conditions

The following specific error conditions may occur.

sw1= ' sw2= ' with
    • ' xx ': Wrong Length (the Lc field is incorrect)

ISO 7816-4: GET RESPONSE and ENVELOPE command

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.