GM/T 0101-2020Test specification for cryptography and security protocol of near field communication (English PDF)
近场通信密码安全协议检测规范
This is a limited preview
Buy now to download the full PDF (15 pages)
Need quotation for your management?
Get a formal quotation for GM/T 0101-2020 in 30 minutes.
Issued by
State Administration of Cryptography
Level / Type
National · Recommended
Issue date
December 28, 2020
Implementation date
July 1, 2021
Scope
GM/T 0101-2020 is the English-translated version of 近场通信密码安全协议检测规范.
GM/T 0101-2020 — Test specification for cryptography and security protocol of near field communication
Found what you need?
Document preview — GM/T 0101-2020
National Standard of the People's Republic of China
- ICS
- 35.040
- Classification
- L 80
Contents
- Requirements for the consistency and interoperability of NEAU protocol1
- Test method for the correctness of symmetric cryptographic algorithm2
- Test method for the correctness of digital signature algorithm engineering3
- Test method for the correctness of key exchange protocol engineering4
- Test method for the conformance and interoperability of NEAU protocol5
- Receiver (B) test method6
5.2 Requirements for the consistency and interoperability of NEAU protocol
implementation... 8
5.3 Other requirements... 8
6 Test topology... 8
6.1 Sender (A) test topology... 8
6.2 Receiver (B) test topology... 9
7 Test methods for the cryptographic algorithm performance and the correctness of engineering implementation... 10
7.1 Test method for the cryptographic algorithm performance... 10
7.2 Test method for the correctness of symmetric cryptographic algorithm
engineering implementation... 11
7.3 Test method for the correctness of digital signature algorithm engineering
implementation... 11
7.4 Test method for the correctness of key exchange protocol engineering
implementation... 12
7.5 Random number test method... 13
8 Test method for the conformance and interoperability of NEAU protocol
implementation... 13
8.1 NEAU-A test method... 13
8.2 NEAU-S test method... 15 Test specification for cryptography and security protocol of near field communication
1 Scope
This document specifies the detection methods for cryptographic algorithm and NFC security protocol (NEAU) of Near Field Communication (NFC) devices that comply with the GB/T 33746 series of standards, including the following:
a) The detection methods and requirements of the performance of the cryptographic algorithm and the correctness of the engineering implementation;
b) The detection methods and requirements of the consistency and interoperability of NEAU protocol implementation.
This document applies to NFC devices that comply with the GB/T 33746 series of standards, and is used to detect whether the cryptographic algorithm and the NEAU security protocol implementation meet the requirements.
2 Normative references the contents of the following documents constitute the indispensable clauses of this document through normative references in the text. For dated references, only the version corresponding to that date is applicable to this document; for undated references, the latest version (including all amendments) is applicable to this document.
GB/T 32907, Information security technology - SM4 block cipher algorithm GB/T 32915, Information security technology - Binary sequence randomness detection method GB/T 32918.2, Elliptic Curve Public-Key Cryptography - Part 2: Digital Signature Algorithm GB/T 32918.3, Information security techniques - Elliptic Curve public-key cryptography - Part 3: Key exchange protocol GB/T 33746.1, Technical specification of NFC security - Part 1: NFCIP-1 security services and protocol the special standard equipment that provides data for auxiliary testing, other than the NEAU protocol interaction, to the test platform; the equipment is usually provided by the testing organization.
4 Abbreviations
The following abbreviations apply to this document.
CBC Cipher Block Chaining CTR Counter Operation Mode NEAU NFC Entity Authentication NEAU-A NFC Entity Authentication using Asymmetric cryptography NEAU-S NFC Entity Authentication using Symmetric cryptography NFC Near Field Communication TePA Tri-element Peer Architecture TTP Trusted Third Party
5 General requirements
5.1 Requirements for the cryptographic algorithm performance and the correctness of engineering implementation Products that comply with the NEAU protocol that is specified in GB/T 33746.2-2017 shall support the cryptographic algorithm that is approved by the national cryptographic authority.
The implementation of the cryptographic algorithm shall satisfy:
a) Cryptographic algorithm performance requirements in the NEAU protocol the cryptographic algorithm performance that is used in the NEAU protocol shall meet the specific scenario requirements of the product application.
b) Requirements for the correctness of symmetric cryptographic algorithm engineering implementation in the NEAU protocol for the symmetric cryptographic algorithm that is used in the NEAU protocol, and its operation modes (CTR and CBC), the operation result shall be consistent with the operation result that is provided by the corresponding algorithm that is specified in the national standard of cryptographic algorithm, including encryption and decryption.
c) Requirements for the correctness of asymmetric cryptographic algorithm engineering implementation in the NEAU protocol for the asymmetric cryptographic algorithm that is used in the NEAU protocol, the operation result shall be consistent with the operation result that is provided by the corresponding algorithm that is specified in the national standard of cryptographic algorithms, including key exchange, signature and signature verification.
5.2 Requirements for the consistency and interoperability of NEAU protocol implementation the near field communication NEAU security protocol shall comply with GB/T 33746.2-2017; the involved entities are mainly sender (A), receiver (B) and TTP.
NEAU includes NEAU-A mechanism and NEAU-S mechanism, among which NEAU-A mechanism is based on the Tri-element Peer Architecture (TePA).
5.3 Other requirements.
The product shall consider self-inspection, and the reliability and stability of the product shall meet the needs of specific scenarios of the product application.
According to the implementation of the protocol in the product, the correctness self-inspection of the cryptographic algorithm and the description of the random number self-inspection can be provided. A random bit generator that conforms to the approval of the national cryptographic management authority shall be adopted for the product.
The security requirements of the cryptographic module in the product shall meet GB/T 37092.
6 Test topology
6.1 Sender (A) test topology the sender (A) test is divided into two situations: TTP is supported and TTP is not supported. Among them, the tested equipment is the sender (A), and the standard equipment is the receiver (B).
The tested equipment (A) is connected to the standard equipment (B); the test platform obtains the NEAU protocol interaction data that is sent and received by the tested equipment. The way to obtain test data: the test platform actively obtains the test data through packet capture, or the tested equipment (A) actively provides the NEAU protocol interaction data sent and received to the
Figure 4; the tested equipment, the standard equipment and the support
equipment implement the NEAU protocol interaction.
b) The test platform obtains relevant data of cryptographic algorithm performance testing, including data length, cryptographic operations, number of repetitions, statistical completion time and other data.
Cryptographic operations include: SM4 encryption/decryption, SM2 signature/verification.
c) The test platform uses the obtained data to calculate the performance of the corresponding cryptographic algorithm.
7.2 Test method for the correctness of symmetric cryptographic algorithm engineering implementation the test method is as follows:
a) According to the test requirements, if the tested equipment is the sender, build the test network according to Figure 1 or Figure 2; if the tested equipment is the receiver, build the test network according to Figure 3 or
Figure 4; the tested equipment, the standard equipment and the support
equipment implement the NEAU protocol interaction. Among them, the standard equipment shall interact with the tested equipment in accordance with the operation examples that are given in GB/T 32907.
b) The test platform obtains symmetric cryptographic algorithm test related data, including the corresponding algorithm working mode, key, initialization vector, plaintext, cyphertext and other data, which is involved when the tested equipment and standard equipment implement the NEAU-S protocol in Appendix D.3 of GB/T 33746.2-2017. It is recommended to collect 3 sets of data.
c) The test platform uses such data to carry out the correctness test of the symmetric cryptographic algorithm engineering implementation, and specifically follows the algorithm working mode that is specified in GB/T 32907 and GB/T 33746.2-2017, to detect the correctness of the operation results. It is suggested that the test is judged as passed when all the 3 sets of data are correct; otherwise, it is judged as failed.
7.3 Test method for the correctness of digital signature algorithm engineering implementation the test method is as follows:
a) According to the test requirements, if the tested equipment is the sender, build the test network according to Figure 1 or Figure 2; if the tested equipment is the receiver, build the test network according to Figure 3 or
Figure 4; the tested equipment, the standard equipment and the support
equipment implement the NEAU protocol interaction. Among them, the standard equipment shall interact with the tested equipment in accordance with the digital signature and verification example that is given in GB/T 32918.2;
b) The test platform obtains the digital signature algorithm test related data, including the key, to-be-signed data, signature result and other data, which is involved when the tested equipment and the standard equipment implement the NEAU-A protocol in Appendix C.3 or Appendix C.4 of GB/T 33746.2-2017. It is recommended to collect 3 sets of data;
c) The test platform uses such data to carry out the correctness test of the digital signature algorithm engineering implementation, which specifically follows GB/T 32918.2 and GB/T 35276 to check the correctness of the operation results. It is suggested that the test is judged as passed when all the 3 sets of data are correct; otherwise, it is judged as failed.
7.4 Test method for the correctness of key exchange protocol engineering implementation the test method is as follows:
a) According to the test requirements, if the tested equipment is the sender, build the test network according to Figure 1 or Figure 2; if the tested equipment is the receiver, build the test network according to Figure 3 or
Figure 4; the tested equipment, the standard equipment and the support
equipment implement the NEAU protocol interaction. Among them, the standard equipment shall interact with the tested equipment in accordance with the key exchange and verification example that is given in GB/T 32918.3.
b) The test platform obtains key exchange protocol test related data, including the public key algorithm curve parameters, cryptographic hash algorithm identifier, sender temporary public key, sender exchange public key, receiver temporary public key, receiver exchange public key, sender ID, receiver ID, key exchange output key and other data, which is involved when the tested equipment and the standard equipment implement the NEAU-A protocol in Appendix C.3 or Appendix C.4 of GB/T 33746.2-2017.
It is recommended to collect 3 sets of data.
c) The test platform uses such data to carry out the correctness test of the key exchange protocol engineering implementation, which specifically follows GB/T 32918.3 and GB/T 35276, to detect the correctness of the negotiation results. It is suggested that the test is judged as passed when all the 3 sets of data are correct; otherwise, it is judged as failed.
c) Check whether the acquired data interacted with the tested equipment conforms to the data that shall be sent by the sender (A) specified in Appendix C.3 of GB/T 33746.2-2017.
When TTP is not supported, the test topology is shown in Figure 2; the standard equipment receiver (B) is required to carry out the test:
a) Build a test network; the tested equipment and standard equipment implement the NEAU protocol interaction;
b) Obtain the data in the process when the tested equipment implements the NEAU-A protocol interaction, including ACT_REQ(TTP||NA||CertA) and VFY_REQ(NA||NB||QA||SigA||MacTagA);
c) Check whether the acquired data interacted with the tested equipment conforms to the data that shall be sent by the sender (A) specified in Appendix C.4 of GB/T 33746.2-2017.
8.1.3 Receiver (B) test method
When TTP is supported, the test topology is shown in Figure 3; the standard equipment sender (A) and support equipment TTP are required to carry out the test:
a) Build a test network; the tested equipment, standard equipment and support equipment implement the NEAU protocol interaction;
b) Obtain the data in the process when the tested equipment implements the NEAU-A protocol interaction, including ACT_RES(TTP||NB||NA||CertB||QB||SigB) and VFY_RES(MacTagB);
c) Check whether the acquired data interacted with the tested equipment conforms to the data that shall be sent by the receiver (B) specified in Appendix C.3 of GB/T 33746.2-2017.
When TTP is not supported, the test topology is shown in Figure 4; the standard equipment sender (A) is required to carry out the test:
a) Build a test network; the tested equipment and standard equipment implement the NEAU protocol interaction;
b) Obtain the data in the process when the tested equipment implements the NEAU-A protocol interaction, including ACT_RES(TTP||NB||NA||CertB||QB||SigB) and VFY_RES(MacTagB);
c) Check whether the acquired data interacted with the tested equipment conforms to the data that shall be sent by the receiver (B) specified in Appendix C.4 of GB/T 33746.2-2017.
......
This preview omits tables, figures, formulas and parts of the technical clauses. The complete document — 15 pages — is available in the English PDF.
How to Download GM/T 0101-2020
- 1
Add to cart
Click "Download PDF" on this page and choose "Buy this standard". You can add more standards before checkout.
- 2
Checkout
Enter your email and billing details. Payment is processed securely by Stripe (cards or bank transfer). Prefer bank details? Request a quotation (min. order $300).
- 3
Fast delivery
After payment you'll receive an email confirmation. The English PDF is sent to the same address, usually within minutes and at the latest within 1 business day.
- 4
Invoice included
A tax invoice is attached to the confirmation email. Need a custom invoice? Contact us.
Related Standards
GM/T 0001.4-2024 — Zu Chongzhi's Sequence Cipher Algorithm Part 4: Authentication Encryption Mechanism
GM/T 0028-2024 — Security requirements for cryptographic modules
GM/T 0039-2024 — Security Test Requirements for Cryptographic Modules
GM/T 0101-2020
$150.00