Key issuance method, system, electronic device and computer readable storage medium

By using shared random numbers P and G to generate encrypted values, the problem of difficult identification verification in the SM9 algorithm is solved, realizing a secure and unique device identifier and ensuring the security and uniqueness of key issuance.

CN117220913BActive Publication Date: 2026-11-27ZHEJIANG DAHUA TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202311021788.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-14
Publication Date
2026-11-27
Estimated Expiration
2043-08-14

AI Technical Summary

Technical Problem

In existing technologies, the SM9 algorithm struggles to find a highly secure and easily verifiable identifier, making it difficult to implement in practical applications. In particular, other identifiers such as serial numbers and MAC addresses are easily forged, making it impossible to guarantee security.

Method used

Shared random numbers P and G are used to generate verifiable device identifiers. An encrypted value is generated using the DH algorithm to distinguish between internal and external identifiers. Internal identifiers are not displayed externally, while external identifiers are verified through internal identifiers to prevent theft.

Benefits of technology

It provides a verifiable device identifier, ensuring the security and uniqueness of the identifier, preventing the theft of external identifiers, realizing mutual trust between terminal devices and key generation centers, and ensuring that the issued keys are unique and secure.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117220913B_ABST
    Figure CN117220913B_ABST
Patent Text Reader

Abstract

The application provides a key issuing method, system, electronic equipment and computer readable storage medium. A key generation center determines a shared random number of a terminal device, sends a first encrypted value to the terminal device based on the shared random number, acquires a second encrypted value generated by the terminal device based on the first random number and a third encrypted value generated by the terminal device based on the first encrypted value and the second encrypted value, generates a fourth encrypted value based on the first encrypted value and the second encrypted value, and issues a key to the terminal device with the first encrypted value as an identifier when the third encrypted value and the fourth encrypted value are consistent. Through the above method, the device identifier in the application is a verifiable device identifier, which is divided into an internal identifier and an external identifier. The internal identifier is not displayed externally, the external identifier is displayed externally, the external identifier can be proved by the internal identifier, and the external identifier is prevented from being stolen.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of cybersecurity, and in particular to a key issuance method, system, electronic device, and computer-readable storage medium. Background Technology

[0002] Since its inception, SM9 has seen few practical applications. A major reason is the difficulty in finding a suitable identifier for security. Common identifiers like phone numbers and email addresses can serve as natural identifiers because they are backed by carriers (service providers) and can be verified by sending random verification codes to confirm the legitimate possession of the identifier by the SM9 key applicant. Other identifiers, such as serial numbers and MAC addresses, are unverifiable, easily forged, and their security cannot be guaranteed. However, using phone numbers and email addresses as identifiers has limitations and is difficult to apply in most scenarios. Summary of the Invention

[0003] This application provides a key issuance method, apparatus, electronic device, and computer-readable storage medium.

[0004] To address the aforementioned technical problems, this application proposes a key issuance method. The key issuance method is applied to a key generation center and includes: determining a shared random number for a terminal device; sending a first encrypted value to the terminal device based on the shared random number; obtaining a second encrypted value generated by the terminal device based on the first random number, and a third encrypted value generated by the terminal device based on the first and second encrypted values; generating a fourth encrypted value based on the first and second encrypted values; and issuing a key to the terminal device using the first encrypted value as an identifier when the third and fourth encrypted values ​​are identical.

[0005] The step of determining the shared random number of the terminal device and sending a first encrypted value to the terminal device based on the shared random number includes: determining whether the shared random number library includes the shared random number of the terminal device; if so, determining the shared random number of the terminal device and sending a first encrypted value to the terminal device based on the shared random number.

[0006] The step of determining whether the shared random number library includes the shared random number of the terminal device includes: obtaining the hash value of the shared random number of the terminal device; and determining whether the shared random number library includes the shared random number of the terminal device based on the hash value.

[0007] The step of sending the first encrypted value to the terminal device based on the shared random number includes: obtaining a second random number; encrypting the shared random number pair based on the second random number to obtain the first encrypted value.

[0008] The step of sending a first encrypted value to the terminal device based on the shared random number includes: calculating the first encrypted value based on the shared random number and a second random number; sending a third random number and the first encrypted value to the terminal device; and issuing a signing key to the terminal device using the first encrypted value as an identifier when the third encrypted value and the fourth encrypted value are the same includes: calculating a first digest value of the third random number using the fourth encrypted value; obtaining a second digest value of the third random number calculated by the terminal device based on the third encrypted value; and issuing a signing key to the terminal device using the first encrypted value as an identifier when the first digest value and the second digest value are the same, and updating the second random number.

[0009] The third random number is the same as the first encrypted value.

[0010] To address the aforementioned technical problems, this application proposes a key issuance method. This method is applied to a key issuance system, which includes a key generation center and a terminal device. The key issuance method includes: the terminal device sending a key issuance request to the key generation center; the key generation center obtaining a shared random number from the key issuance request and sending a first encrypted value to the terminal device based on the shared random number; the terminal device generating a second encrypted value based on the first random number and a third encrypted value based on the first and second encrypted values, and sending the second and third encrypted values ​​to the key generation center; the key generation center generating a fourth encrypted value based on the first and second encrypted values, and issuing a key to the terminal device using the first encrypted value as an identifier when the third and fourth encrypted values ​​match.

[0011] To address the aforementioned technical problems, this application also proposes a key issuance system, comprising a key generation center and a terminal device. The key generation center is configured to obtain a shared random number from the terminal device based on the key issuance request, send a first encrypted value to the terminal device based on the shared random number, and generate a fourth encrypted value based on the first and second encrypted values. When the third encrypted value matches the fourth encrypted value, the center issues a key to the terminal device using the first encrypted value as an identifier. The terminal device is configured to send a key issuance request to the key generation center, generate a second encrypted value based on the first random number, and a third encrypted value based on the first and second encrypted values, and send the second and third encrypted values ​​to the key generation center.

[0012] To address the aforementioned technical problems, this application proposes an electronic device comprising a processor and a memory, wherein the memory stores program data, and the processor executes the program data to implement the aforementioned key signing method.

[0013] To address the aforementioned technical problems, this application proposes a computer-readable storage medium for storing program data, which, when executed by a processor, is used to implement the key signing method described above.

[0014] The beneficial effects of this application are as follows: The key generation center determines a shared random number for the terminal device and sends a first encrypted value to the terminal device based on the shared random number; it obtains a second encrypted value generated by the terminal device based on the first random number, and a third encrypted value generated by the terminal device based on the first and second encrypted values; it generates a fourth encrypted value based on the first and second encrypted values; and when the third and fourth encrypted values ​​are consistent, it issues a signing key to the terminal device using the first encrypted value as an identifier. Through this method, unlike the device identifiers in the prior art, the device identifier in this application is a verifiable device identifier, and it is divided into an internal identifier and an external identifier. The internal identifier is not publicly displayed, while the external identifier is publicly displayed. The external identifier can be verified using the internal identifier, thus preventing the external identifier from being stolen. Attached Figure Description

[0015] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort. Wherein:

[0016] Figure 1 This is a flowchart illustrating an embodiment of the key signing method provided in this application;

[0017] Figure 2 This is a schematic diagram of the overall process of the key issuance method provided in this application;

[0018] Figure 3 This is a flowchart illustrating another embodiment of the key signing method provided in this application;

[0019] Figure 4 This is a schematic diagram of the structure of an embodiment of the key signing system provided in this application;

[0020] Figure 5 This is a schematic diagram of the structure of an embodiment of the electronic device provided in this application;

[0021] Figure 6This is a schematic diagram of an embodiment of the computer-readable storage medium provided in this application. Detailed Implementation

[0022] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of the embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.

[0023] Please refer to details. Figure 1 and Figure 2 , Figure 1 This is a flowchart illustrating an embodiment of the key signing method provided in this application. Figure 2 This is a schematic diagram of the overall process of the key issuance method provided in this application.

[0024] The key issuance method of this application is applied to a key generation center, which can be a server or a system consisting of a server and terminal devices working together. Accordingly, the various parts of the key issuance center, such as units, sub-units, modules, and sub-modules, can be all located in the server, or they can be located separately in the server and terminal devices.

[0025] Furthermore, the aforementioned server can be either hardware or software. When the server is hardware, it can be implemented as a distributed server cluster consisting of multiple servers, or as a single server. When the server is software, it can be implemented as multiple software programs or software modules, such as software or software modules used to provide distributed servers, or as a single software program or software module; no specific limitation is made here. In some possible implementations, the key signing method of this application embodiment can be implemented by a processor calling computer-readable instructions stored in memory.

[0026] It should be noted that, in one embodiment of this application, the key signing method is applied to the SM9 algorithm to improve the existing SM9 algorithm. In other embodiments of this application, the key signing method provided is not limited to the SM9 algorithm and can also be applied to other key signing methods, without limitation. The following will use the SM9 algorithm as an example to improve the SM9 algorithm using the key signing method of this application; however, the key signing method in this application is applicable to any key generation field.

[0027] In 2016, the State Cryptography Administration released the SM9 identifier cryptography algorithm. As an identifier cryptography standard, the SM9 algorithm mainly consists of the following three parts: digital signature algorithm, public key encryption algorithm, and key exchange protocol.

[0028] The SM9 algorithm standard can be applied to systems such as electronic authentication services, identity authentication, and email, effectively ensuring the integrity and authenticity of data during transmission, filling the gap in domestic identification cryptography systems, and laying a solid underlying cryptographic foundation for application-level security.

[0029] However, the security foundation of SM9 is to choose a trustworthy and secure identifier. However, apart from a few identifiers such as mobile phone numbers and email accounts that are endorsed by operators and whose authenticity can be verified by transmitting random verification codes, many other identifiers, such as MAC addresses and serial numbers, are extremely easy to forge and difficult to identify.

[0030] Based on the SM9 algorithm, this application embodiment uses the DH algorithm or ECDH algorithm to prevent the theft of the identifier. It should be noted that any algorithm that can achieve the goal of "changing an identifier that is originally just a string of characters into a verifiable identifier" in this application embodiment is applicable, and will not be elaborated on here.

[0031] like Figure 1 As shown, the steps of the key issuance method in this application are as follows:

[0032] Step S11: Determine the shared random number of the terminal device, and send the first encrypted value to the terminal device based on the shared random number.

[0033] Specifically, shared random numbers P and G are imported for terminal devices that need to establish a trusted relationship with SM9. The key generation center determines the shared random numbers P and G for the terminal devices, and also imports the shared random numbers P and G.

[0034] In this embodiment, P is a large prime number, and G is a large integer. A typical controllable and secure environment is the equipment production process or within an isolated dedicated local area network.

[0035] Furthermore, the terminal device establishes a connection with the key generation center, sends the HASH value of P+G to the key generation center, and attempts to obtain the public and private keys of SM9.

[0036] The key generation center searches in the random number library based on the received HASH value. If a corresponding P+G HASH value exists in the random number library, the key generation center selects the corresponding P and G values ​​and generates a second random number B. The key generation center then uses the second random number B as the master private key to encrypt the random number P and G values, generating a first encrypted value. The key generation center then sends the first encrypted value to the terminal device.

[0037] In this embodiment, the first encrypted value is calculated by the key generation center based on the shared random numbers P and G, and the value of the second random number B. The key generation center uses the second random number B as the master private key to encrypt the shared random numbers P and G to obtain the first encrypted value. In this embodiment, the DH algorithm is used for encryption to obtain the first encrypted value G. B MOD P.

[0038] The random number B can be generated based on the performance of the key generation center. It can be generated randomly each time or updated after a certain period of use to reduce computational load. A pair of P and G random numbers corresponds to only one hash value and only one second random number B. The second random number B can be updated periodically instead of with each request to improve computational efficiency. The value of the second random number B is updated after each successful verification at the key generation center to avoid repeated attacks.

[0039] In other embodiments of this application, if there is no corresponding PG value in the random number library of the key generation center, the process is terminated, which means that the verification of the connection between the terminal device and the key generation center has failed. The key generation center will not authorize it and will not issue the first random number to the terminal device.

[0040] This application proposes an embodiment that utilizes shared random numbers P and G to create an isolated space between the terminal device and the key generation center. Only terminal devices possessing the same shared random numbers P and G will have mutual trust with the KGC. The specific steps are as follows:

[0041] The key generation center determines whether the shared random number library includes the shared random number of the terminal device. The key generation center obtains the hash value of the shared random number of the terminal device and determines whether the shared random number library includes the shared random number of the terminal device based on the hash value.

[0042] If the random number library includes a shared random number for the terminal device, the key generation center determines the shared random number for the terminal device and sends the first encrypted value to the terminal device based on the shared random number.

[0043] Specifically, the terminal device establishes a connection request to the key generation center and sends the hash value of P+G in an attempt to obtain the SM9 public and private keys. The key generation center selects the corresponding P and G values ​​based on the received hash value and generates a random number B. If the corresponding P and G values ​​are not found in the random number library of the key generation center, the process terminates.

[0044] In this way, the key generation center controls the P and G parameters in the DH algorithm, ensuring that only devices with the same built-in P and G parameters form a mutual trust relationship with the KGC. This solves the problem of which terminal devices the key generation center should issue mutually trusted SM9 public-private key pairs based on the same master key to.

[0045] Step S12: Obtain the second encrypted value generated by the terminal device based on the first random number, and the third encrypted value generated by the terminal device based on the first encrypted value and the second encrypted value.

[0046] For details, please continue reading Figure 2 The terminal device generates a first random number A. The random number A needs to be saved for persistence so that it can be repeated later. A safer method can be to use physical PFU technology to obtain a fixed random number A each time the device is powered on.

[0047] The terminal device uses A as its private key to encrypt shared random numbers P and G, obtaining a second encrypted value G. A MOD P. Further, the terminal device uses the first encryption value G issued by the key generation center. B MOD P and the second encrypted value G A MOD P, calculate the third encrypted value (G) B MOD P) A MOD P.

[0048] It should be noted that, in this embodiment of the application, the terminal device will use the second encrypted value G A MOD P serves as the external identifier of the device, while the random number A serves as the internal identifier. This differs from existing technologies that use mobile phone numbers, email accounts, etc., as natural identifiers. Through the above method, the internal identifier is not displayed externally, while the external identifier is displayed externally. The external identifier can be verified using the internal identifier, thus preventing the external identifier from being stolen.

[0049] Furthermore, the key generation center obtains the second and third encrypted values ​​obtained by the terminal device using the above method.

[0050] Step S13: Generate a fourth encrypted value based on the first and second encrypted values.

[0051] Specifically, the first encrypted value G generated in the key generation central root step S11 B MOD P and the second encrypted value G A MOD P calculates the fourth encryption value (G) A MOD P) B MOD P.

[0052] Step S14: When the third encryption value and the fourth encryption value are consistent, issue a signing key to the terminal device using the first encryption value as the identifier.

[0053] Specifically, in the third encryption value (G) B MOD P) A MOD P and the fourth encryption value (G)A MOD P) B When MOD P matches, the first encrypted value is used to issue a signing key to the terminal device. For example... Figure 2 As shown, the key generation center generates SM9 public and private keys, using (G A MOD P) B MOD P encryption sends public and private keys to terminal devices.

[0054] Furthermore, in one embodiment of this application, the key generation center uses a fourth encrypted value to calculate a first digest value of a third random number. It then obtains a second digest value of the third random number calculated by the terminal device based on the third encrypted value. When the first digest value and the second digest value are the same, a signing key is issued to the terminal device using the first encrypted value as an identifier, and the second random number is updated.

[0055] Specifically, such as Figure 2 As shown, the key generation center generates a third random number H, and then combines the third random number H with the first encrypted value G. B MOD P is sent to the terminal device, and the terminal device calculates the third encryption value (G). B MOD P) A MOD P, and use the calculation result as the first digest value HMAC of the third random number H in the cryptographic calculation. The first digest value HMAC is sent to the key generation center. The key generation center calculates the second digest value HMAC based on the third random number H, compares the first digest value and the second digest value. When the first digest value and the second digest value are the same, the key generation center assigns the first encryption value as the identifier to the terminal device to issue a key, and updates the second random number B in real time.

[0056] In one embodiment of this application, in order to improve computational efficiency, the key generation center will use G B The MOD P value is used as the third random number H and saved, eliminating the need to generate a new random number and reducing the generation of one random number.

[0057] Through the above method, the device identifier in this application is a verifiable device identifier, and it is divided into an internal identifier and an external identifier. The internal identifier is not displayed externally, while the external identifier is displayed externally. The external identifier can be proved by the internal identifier, which avoids the external identifier being stolen. By using the two number pairs P and G, an isolated space is created between the terminal device and the key generation center. Only terminal devices with the same P and G will trust the key generation center. At the same time, the key generation center will also assign them SM9 public-private key pairs signed by the same master private key. Only devices with public-private key pairs signed by the same master private key will trust each other.

[0058] To address the aforementioned technical problems, this application also proposes a key issuance method, for details of which please refer to [link to relevant documentation]. Figure 3 , Figure 3 This is a flowchart illustrating another embodiment of the key issuance method provided in this application, which is applied to a key issuance system. The key issuance system includes a key generation center and terminal devices.

[0059] like Figure 3 As shown, the specific steps are as follows:

[0060] Step S21: The terminal device sends a key issuance request to the key generation center.

[0061] Step S22: The key generation center obtains the shared random number from the terminal device from the key issuance request, and sends the first encrypted value to the terminal device based on the shared random number.

[0062] Step S23: The terminal device generates a second encrypted value based on the first random number, and a third encrypted value based on the first encrypted value and the second encrypted value, and sends the second encrypted value and the third encrypted value to the key generation center.

[0063] Step S24: The key generation center generates a fourth encryption value based on the first encryption value and the second encryption value. When the third encryption value and the fourth encryption value are consistent, the first encryption value is used as the identifier to issue a key to the terminal device.

[0064] The key signing method in this application embodiment is compared to... Figure 1 The key issuance method described above only adds the interaction process between the terminal device and the key generation center; other technical aspects are basically the same and will not be repeated here.

[0065] To implement the above key issuance method, this application also proposes a key issuance system 400, for details of which please refer to [link / reference needed]. Figure 4 , Figure 4 This is a schematic diagram of an embodiment of the key signing system provided in this application.

[0066] The key issuance system 400 includes:

[0067] Terminal device 41 is used to send a key issuance request to the key generation center, and is also used to generate a second encrypted value based on a first random number, and a third encrypted value based on the first encrypted value and the second encrypted value, and send the second encrypted value and the third encrypted value to the key generation center.

[0068] The key generation center 42 is used to obtain a shared random number of the terminal device from the key issuance request, send a first encrypted value to the terminal device based on the shared random number, and generate a fourth encrypted value based on the first encrypted value and the second encrypted value. When the third encrypted value and the fourth encrypted value are consistent, the key is issued to the terminal device with the first encrypted value as the identifier.

[0069] To implement the key signing method of the above embodiments, this application also proposes an electronic device, which can be found in detail below. Figure 5 , Figure 5 This is a schematic diagram of the structure of an embodiment of the electronic device provided in this application.

[0070] The electronic device 300 of this application embodiment includes a memory 31 and a processor 32, wherein the memory 31 and the processor 32 are coupled together.

[0071] The memory 31 is used to store program data, and the processor 32 is used to execute the program data to implement the key signing method described in the above embodiments.

[0072] In this embodiment, processor 32 can also be referred to as a CPU (Central Processing Unit). Processor 32 may be an integrated circuit chip with signal processing capabilities. Processor 32 can also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. The general-purpose processor can be a microprocessor, or processor 32 can be any conventional processor.

[0073] To implement the key signing method of the above embodiments, this application also provides a computer-readable storage medium, such as... Figure 6 As shown, Figure 6 This is a schematic diagram of the structure of the computer-readable storage medium provided in this application.

[0074] The computer-readable storage medium 600 is used to store program data 61, which, when executed by a processor, is used to implement the key signing method as described in the above embodiments.

[0075] This application also provides a computer program product, wherein the computer program product includes a computer program operable to cause a computer to execute the key signing method as described in the embodiments of this application. The computer program product can be a software installation package.

[0076] The key signing method described in the above embodiments of this application, when implemented as a software functional unit and sold or used as an independent product, can be stored in a device, such as a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute all or part of the steps of the methods described in the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0077] The above description is merely an embodiment of this application and does not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of this application.

Claims

1. A key signing method, characterized in that, The key issuance method is applied to a key generation center, and the key issuance method includes: Determine a shared random number for the terminal device, calculate a first encrypted value based on the shared random number and a second random number, and send a third random number and the first encrypted value to the terminal device; Obtain a second encrypted value generated by the terminal device based on a first random number, and a third encrypted value generated by the terminal device based on the first encrypted value and the second encrypted value; A fourth encrypted value is generated based on the first encrypted value and the second encrypted value; The first digest value of the third random number is calculated using the fourth encrypted value; Obtain the second digest value of the third random number calculated by the terminal device based on the third encrypted value; When the first digest value and the second digest value are the same, the first encryption value is used as the identifier to issue a signing key to the terminal device, and the second random number is updated.

2. The key signing method according to claim 1, characterized in that, The step of determining a shared random number for the terminal device and sending a first encrypted value to the terminal device based on the shared random number includes: Determine whether the shared random number library includes the shared random number of the terminal device; If so, then determine the shared random number of the terminal device, and send the first encrypted value to the terminal device based on the shared random number.

3. The key issuance method according to claim 2, characterized in that, The step of determining whether the shared random number library includes the shared random numbers of the terminal device includes: Obtain the hash value of the shared random number of the terminal device; Based on the hash value, determine whether the shared random number library includes the shared random number of the terminal device.

4. The key issuance method according to claim 1, characterized in that, The key signing method further includes: Get the second random number; The shared random number pair is encrypted based on the second random number to obtain a first encrypted value.

5. The key issuance method according to claim 1, characterized in that, in, The third random number is the same as the first encrypted value.

6. A key issuance method, characterized in that, The key issuance method is applied to a key issuance system, wherein the key issuance system includes a key generation center and terminal equipment; the key issuance method includes: The terminal device sends a key issuance request to the key generation center; The key generation center obtains the shared random number of the terminal device from the key issuance request, calculates the first encrypted value based on the shared random number and the second random number, and sends the third random number and the first encrypted value to the terminal device; The terminal device generates a second encrypted value based on a first random number, and a third encrypted value based on the first encrypted value and the second encrypted value, and sends the second encrypted value and the third encrypted value to the key generation center; The key generation center generates a fourth encrypted value based on the first encrypted value and the second encrypted value, and uses the fourth encrypted value to calculate the first digest value of the third random number; it obtains the second digest value of the third random number calculated by the terminal device based on the third encrypted value; when the first digest value and the second digest value are the same, it issues a key to the terminal device with the first encrypted value as an identifier, and updates the second random number.

7. A key issuance system, characterized in that, The key issuance system includes a key generation center and terminal equipment; The terminal device is used to send a key issuance request to the key generation center, and is also used to generate a second encrypted value based on a first random number, and a third encrypted value based on the first encrypted value and the second encrypted value, and send the second encrypted value and the third encrypted value to the key generation center; The key generation center is used to obtain a shared random number from the terminal device from the key issuance request, calculate a first encrypted value based on the shared random number and a second random number, send a third random number and the first encrypted value to the terminal device, and is also used to generate a fourth encrypted value based on the first encrypted value and the second encrypted value, calculate a first digest value of the third random number using the fourth encrypted value, obtain a second digest value of the third random number calculated by the terminal device based on the third encrypted value, and when the first digest value and the second digest value are the same, issue a key to the terminal device using the first encrypted value as an identifier, and update the second random number.

8. An electronic device, characterized in that, The electronic device includes a processor and a memory, the memory storing program data, and the processor executing the program data to implement the key signing method as described in any one of claims 1-6.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium is used to store program data, which, when executed by a processor, is used to implement the key signing method according to any one of claims 1-6.

Citation Information

Patent Citations

  • Method for distributing and authenticating public keys using random numbers and Diffie-Hellman public keys

    US20040158715A1